diff options
Diffstat (limited to '')
-rwxr-xr-x | scripts/nsp-console.sh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/nsp-console.sh b/scripts/nsp-console.sh index 510ecdb..4ac9e32 100755 --- a/scripts/nsp-console.sh +++ b/scripts/nsp-console.sh @@ -1,8 +1,7 @@ #!/bin/sh -if tmux list-sessions | grep "scratchpad" -then - tmux attach-session -t "scratchpad" +if tmux list-sessions | grep "scratchpad"; then + tmux attach-session -t "scratchpad" else - tmux new-session -s "scratchpad" -n "scratchpad" -c "$HOME" + tmux new-session -s "scratchpad" -n "scratchpad" -c "$HOME" fi |