diff options
author | David Runge <david.runge@frqrec.com> | 2014-10-06 16:36:52 +0200 |
---|---|---|
committer | David Runge <david.runge@frqrec.com> | 2014-10-06 16:36:52 +0200 |
commit | 73c1c2a6561b131502627e9c172c42a07265e7ed (patch) | |
tree | 81c0d8295f86f13c64f2bcd6749a37a20c807ca1 /bin | |
parent | 855ae72f6f9b2f3b788b9a0fd9c1db0b4ed9a7a6 (diff) | |
parent | a3bfd587dd94a04c0d630c2cb9a7b35dd4aa99e2 (diff) | |
download | dotfiles-73c1c2a6561b131502627e9c172c42a07265e7ed.tar.gz dotfiles-73c1c2a6561b131502627e9c172c42a07265e7ed.tar.bz2 dotfiles-73c1c2a6561b131502627e9c172c42a07265e7ed.tar.xz dotfiles-73c1c2a6561b131502627e9c172c42a07265e7ed.zip |
Merge branch 'master' of https://github.com/davezerave/dot
fuckup
* 'master' of https://github.com/davezerave/dot:
Made calling irssi more robust in tmux
Adding server side irssi ignores
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/irssi | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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 |