diff --git a/.bashrc.d/weechat.sh b/.bashrc.d/weechat.sh new file mode 100644 index 0000000..612dcbf --- /dev/null +++ b/.bashrc.d/weechat.sh @@ -0,0 +1,4 @@ +# 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'