about summary refs log tree commit diff
path: root/scripts/nsp-console.sh
blob: 8923ea2bcc4535df745214f77e7a91bb88bdf5dd (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