Skip to content

Instantly share code, notes, and snippets.

@matschaffer
Created December 16, 2010 04:11
Show Gist options
  • Save matschaffer/743011 to your computer and use it in GitHub Desktop.
Save matschaffer/743011 to your computer and use it in GitHub Desktop.
# 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
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