Skip to content

Instantly share code, notes, and snippets.

@kl
Created November 6, 2013 12:51
Show Gist options
  • Save kl/7335593 to your computer and use it in GitHub Desktop.
Save kl/7335593 to your computer and use it in GitHub Desktop.
tmux-development
tmux has-session -t development
if [ $? != 0 ]
then
tmux new-session -s development -n editor -d
tmux send-keys -t development 'cd ~/Programming' C-m
tmux send-keys -t development 'vim' C-m
tmux split-window -h -p 35 -t development
tmux split-window -v -p 50 -t development
tmux send-keys -t development:1.2 'cd ~/Programming' C-m
tmux send-keys -t development:1.3 'cd ~/Programming' C-m
tmux new-window -n console -t development
tmux send-keys -t development:2 'cd ~/Programming' C-m
tmux select-window -t development:1
fi
tmux attach -t development
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment