Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add aliases for tmuxinator if installed #214

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/completion/functions
Submodule functions updated 35 files
+10 −0 .editorconfig
+3 −3 _adb
+3 −3 _android
+14 −18 _debuild
+3 −3 _ditz
+86 −91 _emulator
+13 −11 _gem
+4 −4 _genlop
+3 −3 _git-pulls
+9 −13 _git-wtf
+3 −3 _github
+3 −3 _gradle
+4 −3 _knife
+11 −11 _manage.py
+3 −3 _mvn
+5 −3 _optirun
+3 −3 _perf
+36 −13 _pgsql_utils
+6 −5 _pip
+85 −89 _pkcon
+3 −3 _play
+5 −5 _port
+2 −1 _portage
+1 −1 _portage_utils
+2 −2 _pygmentize
+2 −2 _sbt
+14 −10 _scala
+4 −4 _setup.py
+3 −3 _srm
+1 −1 _ssh-copy-id
+0 −291 _task
+55 −0 _tmuxinator
+3 −3 _vagrant
+108 −100 _yaourt
+0 −36 _zargs
12 changes: 12 additions & 0 deletions modules/tmux/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@ Aliases
- `ta` attaches or switches to a tmux session.
- `tl` lists sessions managed by the tmux server.

If [tmuxinator][6] is installed, these aliases will also be setup

- `ts [project_name]` start a tmux session using project's tmuxinator config
- `to [project_name]` create a new project file and open it in your editor
- `tc [source_project] [new_project]` copy source_project project file to a new project called new_project
- `tD [project_name]` deletes the project called project_name
- `tI` deletes all existing projects!
- `tls` list all existing projects
- `tlsv` verbosly list all existing projects
- `tdoc` look for problems in your configuration

Caveats
-------

Expand All @@ -53,4 +64,5 @@ Authors
[3]: ChrisJohnsen/tmux-MacOSX-pasteboard
[4]: mxcl/homebrew
[5]: https://github.com/sorin-ionescu/oh-my-zsh/issues
[6]: https://github.com/aziz/tmuxinator

12 changes: 12 additions & 0 deletions modules/tmux/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,15 @@ fi
# Aliases
alias ta="tmux attach-session"
alias tl="tmux list-sessions"

if (( $+commands[tmuxinator] )); then
alias ts="tmuxinator start "
alias to="tmuxinator open "
alias tc="tmuxinator copy "
alias tD="tmuxinator delete "
alias tI="tmuxinator implode"
alias tls="tmuxinator list"
alias tlsv="tmuxinator list -v"
alias tdoc="tmuxinator doctor"
fi