Skip to content

Instantly share code, notes, and snippets.

@buxtonpaul
Created October 16, 2021 10:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save buxtonpaul/5f37cc7b8f46e0c89a52f979bca3e644 to your computer and use it in GitHub Desktop.
Save buxtonpaul/5f37cc7b8f46e0c89a52f979bca3e644 to your computer and use it in GitHub Desktop.
#!/bin/sh
if tmux a -t default_session
then
echo Session connected and exitied gracefully
else
tmux new-session -s 'default_session' -d 'bpytop'
tmux rename-window 'System'
tmux new-window -d 'mc'
tmux select-window -t :=2
tmux rename-window 'Files'
tmux new-window -d
tmux select-window -t :=3
tmux -2 attach -d
echo Session started and exited gracefully
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment