Created
December 16, 2010 04:11
-
-
Save matschaffer/743011 to your computer and use it in GitHub Desktop.
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
# Given an app in auto jump, callme. Matched by "j cal". | |
$ tmux # start the initial session | |
$ r cal # runs "j cal", opens 3 tabs, starts rails in tab 2 |
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
r() { | |
[ -n "$1" ] && j "$1" | |
tmux rename-window editor | |
tmux new-window -n shell | |
tmux new-window -n server | |
tmux new-window -n other | |
tmux select-window -t 2 | |
tmux send-keys "rails s | |
" | |
tmux select-window -t 1 | |
tmux select-window -t 0 | |
} | |
complete -F _autojump r |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment