Created
July 23, 2012 09:00
-
-
Save kolo/3162728 to your computer and use it in GitHub Desktop.
tmux startup script
This file contains hidden or 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
#! /bin/sh | |
SESSION_NAME=${PWD##*/} # Current directory name will be used as session name | |
tmux new-session -d -s $SESSION_NAME | |
tmux new-window -t $SESSION_NAME:1 -n 'vim' 'vim' | |
tmux new-window -t $SESSION_NAME:2 | |
tmux new-window -t $SESSION_NAME:3 | |
tmux select-window -t $SESSION_NAME:1 | |
tmux -2 attach-session -t $SESSION_NAME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment