Moving from screen to tmux for weechat
This commit is contained in:
parent
2a96636cf5
commit
f1a02c45e0
10
.bashrc
10
.bashrc
|
@ -93,10 +93,10 @@ alias nmap='sudo -E nmap'
|
||||||
|
|
||||||
# I'm tired of managing weechat configs and multiple nicks
|
# I'm tired of managing weechat configs and multiple nicks
|
||||||
# Client depends: ssh, mosh, correct ssh host configuration
|
# 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
|
# If you don't have weechat installed, connect to the existing tmux session through mosh
|
||||||
[[ ! -s /usr/bin/weechat ]] && alias weechat='mosh vps -- screen -dr weechat'
|
[[ ! -s /usr/bin/weechat ]] && alias weechat='mosh vps -- tmux attach -dt weechat'
|
||||||
# If you are thurstylark-vps, connect to the existing screen session locally
|
# If you are thurstylark-vps, connect to the existing tmux session locally
|
||||||
[[ "$HOSTNAME" = "thurstylark-vps" ]] && alias weechat='screen -dr weechat'
|
[[ "$HOSTNAME" = "thurstylark-vps" ]] && alias weechat='tmux attach -dt weechat'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue