Moving from screen to tmux for weechat

This commit is contained in:
David Thurstenson 2017-01-10 16:37:02 -06:00
parent 2a96636cf5
commit f1a02c45e0
1 changed files with 5 additions and 5 deletions

10
.bashrc
View File

@ -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'