diff options
-rw-r--r-- | .gitignore | 5 | ||||
-rwxr-xr-x | bin/irssi | 14 |
2 files changed, 11 insertions, 8 deletions
@@ -198,7 +198,10 @@ svn/ .icedtea/ .inkscape/ .inputrc -.irssi/ +.irssi/config* +.irssi/logs/ +.irssi/scripts/autorun/ +.irssi/away.log .iscan_preference .jackdrc .java/ @@ -1,14 +1,14 @@ -#!/bin/bash +#!/usr/bin/env zsh # Script to start irssi within tmux with attached Nicklist in vertical split on right side if [[ $(hostname) == *frqrec* ]]; then - tmux splitw -h -p 10 - tmux send-keys "cat ~/.irssi/nicklistfifo" C-m - tmux selectp -L - tmux send-keys /usr/bin/irssi C-m - sleep 1 - tmux send-keys "/NICKLIST FIFO" C-m tmux renamew irssi + tmux splitw -h -p 10 + tmux send-keys -t irssi.1 "cat ~/.irssi/nicklistfifo" C-m + tmux select-pane -t irssi.0 + (sleep 3 && tmux send-keys -t irssi.0 "/nicklist fifo" C-m)& + /usr/bin/irssi + wait && tmux kill-pane -t irssi.1 && tmux rename-window $(ps -p $$|grep pts|cut -c16-|cut -d ' ' -f2) else /usr/bin/irssi fi |