Skip to content

Instantly share code, notes, and snippets.

@disposedtrolley
Last active October 17, 2020 22:39
Show Gist options
  • Save disposedtrolley/b0c7843c67d9c7a1d68349b01e8f5339 to your computer and use it in GitHub Desktop.
Save disposedtrolley/b0c7843c67d9c7a1d68349b01e8f5339 to your computer and use it in GitHub Desktop.
Tmux script to start work
session="work"
tmux new-session -d -s $session
# Configure window for main project
tmux selectp -t 0
tmux rename-window main
tmux send-keys "cd ~/projects/foo" C-m
# Configure scratch window
tmux new-window -t $session:1 -n scratch
tmux selectp -t 1
# Start in the scratch window
tmux select-window -t $session:1
tmux attach-session -t $session
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment