about summary refs log tree commit diff
path: root/scripts/nsp-console.sh
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2022-02-16 02:15:52 +0300
committerAzat Bahawi <azat@bahawi.net>2022-02-16 02:15:52 +0300
commit13964faa53b09924bdd27328311ba27457b0b61d (patch)
tree73dcca227f3084fd1fa09fd4d3323544b61218ea /scripts/nsp-console.sh
parentmeh (diff)
I hate the Antichrist
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