about summary refs log tree commit diff
path: root/scripts/nsp-console.sh
blob: b83d5267f77f896c510b292f78bbd3c8a9c9a0bf (plain) (blame)
1
2
3
4
5
6
7
8
#!/bin/sh

if tmux list-sessions | grep -q "scratchpad"
then
    tmux attach-session -t "scratchpad"
else
    tmux new-session -s "scratchpad" -n "scratchpad" -c "$HOME"
fi

Consider giving Nix/NixOS a try! <3