feat: auto-start tmux if it isn't already open

This commit is contained in:
George Rawlinson 2020-02-22 19:56:50 +13:00
parent ac67d73d2b
commit 3742f9b787
Signed by: grawlinson
GPG key ID: E0959FEA8B550539

View file

@ -18,6 +18,11 @@ if command -v tmux &> /dev/null; then
ssh-tmux(){ ssh-tmux(){
ssh -t "$@" "tmux attach || tmux new"; ssh -t "$@" "tmux attach || tmux new";
} }
# auto-start tmux
if [ -z "${TMUX}" ]; then
tmux -f ~/.config/tmux/tmux.conf
fi
fi fi
# rust/cargo # rust/cargo