feat: auto-start tmux if it isn't already open
This commit is contained in:
parent
ac67d73d2b
commit
3742f9b787
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue