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

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