From f1a02c45e093738c8338b9d67b3ef83107ac131a Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Tue, 10 Jan 2017 16:37:02 -0600 Subject: [PATCH] Moving from screen to tmux for weechat --- .bashrc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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'