From c815af6f5c4f29291fc68967afe2458a1ec581b0 Mon Sep 17 00:00:00 2001 From: David Runge Date: Tue, 17 Jun 2014 16:08:27 +0200 Subject: Adding server side irssi ignores --- .gitignore | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index ebdb903..bdd1cd4 100644 --- a/.gitignore +++ b/.gitignore @@ -183,7 +183,10 @@ yankring_history_v2.txt .icedtea/ .inkscape/ .inputrc -.irssi/ +.irssi/config* +.irssi/logs/ +.irssi/scripts/autorun/ +.irssi/away.log .iscan_preference .jackdrc .java/ -- cgit v1.2.3-70-g09d2 From 189ae9539bdbd398df6006e196487dfc2aba7131 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sat, 27 Sep 2014 05:01:56 +0200 Subject: Made calling irssi more robust in tmux --- bin/irssi | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/bin/irssi b/bin/irssi index e041d11..edb0084 100755 --- a/bin/irssi +++ b/bin/irssi @@ -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 -- cgit v1.2.3-70-g09d2