Auto tmux
This commit is contained in:
parent
7396d45807
commit
3b0e9fb43a
1 changed files with 5 additions and 0 deletions
5
zsh-autotmux/.zsh/99-autotmux.zsh
Normal file
5
zsh-autotmux/.zsh/99-autotmux.zsh
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
if [ -z "$TMUX" ]; then
|
||||||
|
if which tmux >/dev/null 2>&1; then
|
||||||
|
tmux -q has-session && exec tmux attach-session -d || exec tmux new-session
|
||||||
|
fi
|
||||||
|
fi
|
Loading…
Reference in a new issue