mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[scripts] add my secret tmux attaching script
This commit is contained in:
parent
3f7c26f124
commit
871aa910da
1 changed files with 6 additions and 0 deletions
6
scripts/tmux-attach-or-new.sh
Executable file
6
scripts/tmux-attach-or-new.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
if tmux has-session; then
|
||||
exec tmux attach
|
||||
else
|
||||
exec tmux new
|
||||
fi
|
Loading…
Reference in a new issue