Last active
October 17, 2020 22:39
-
-
Save disposedtrolley/b0c7843c67d9c7a1d68349b01e8f5339 to your computer and use it in GitHub Desktop.
Tmux script to start work
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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