about summary refs log tree commit diff
path: root/scripts/nsp-console.sh
blob: 4ac9e32a5fd69280a1ebe753798c4c857e86f9e1 (plain) (blame)
1
2
3
4
5
6
7
#!/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