2026-08-12
tmux irssi init

automatically start irssi on boot within tmux

#!/bin/sh -Cfu


set -Cfu


export TERM=tmux-256color
export SHELL=/bin/csh


tmux has > /dev/null 2>&1


if [ "$?" = 1 ]
then
	tmux new -d
	tmux send-keys irssi enter
	
	
	echo "irssi started @ `date '+[%s] %F %T %z/%Z'`" \
	| mail -s irssi a@b.c
fi

you can use this crontab

@reboot directory/tmux-irssi-init.sh

created [1786482796] 2026-08-12 00:13:16 +0300/EEST, modified [1786483972] 2026-08-12 00:32:52 +0300/EEST