diff --git a/.bashrc b/.bashrc index e87057c..59b1334 100644 --- a/.bashrc +++ b/.bashrc @@ -93,10 +93,10 @@ alias nmap='sudo -E nmap' # I'm tired of managing weechat configs and multiple nicks # Client depends: ssh, mosh, correct ssh host configuration -# Server depends: ssh, mosh, screen, weechat, weechat.service (custom) +# Server depends: ssh, mosh, tmux, weechat, weechat.service (custom) -# If you don't have weechat installed, connect to the existing screen session through mosh -[[ ! -s /usr/bin/weechat ]] && alias weechat='mosh vps -- screen -dr weechat' -# If you are thurstylark-vps, connect to the existing screen session locally -[[ "$HOSTNAME" = "thurstylark-vps" ]] && alias weechat='screen -dr weechat' +# If you don't have weechat installed, connect to the existing tmux session through mosh +[[ ! -s /usr/bin/weechat ]] && alias weechat='mosh vps -- tmux attach -dt weechat' +# If you are thurstylark-vps, connect to the existing tmux session locally +[[ "$HOSTNAME" = "thurstylark-vps" ]] && alias weechat='tmux attach -dt weechat'