about summary refs log tree commit diff
path: root/scripts/nsp-console.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/nsp-console.sh')
-rwxr-xr-xscripts/nsp-console.sh7
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

Consider giving Nix/NixOS a try! <3