Swap round some tmux bindings.
[profile.git] / .profile.d / tmux.bashrc
1 # profile-requires: screen.bashrc
2 # XXX: Use a module.
3 tmux=$(PATH=$PATH:/comm/tmux/stable/bin find_working tmux 2>/dev/null)
4 if [ $? = 0 ]; then
5   alias session="bigtmux $tmux has -t session 2>/dev/null && tmux attach -t session || ktmux -T $tmux -s session"
6   if [ -n "$TMUX" ]; then
7     $tmux run-shell ktmux_helper ';' detach 2>/dev/null
8   fi
9 fi