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

if tmux list-sessions | grep "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