aboutsummaryrefslogtreecommitdiff
path: root/.oh-my-zsh/plugins/tmuxinator
diff options
context:
space:
mode:
Diffstat (limited to '.oh-my-zsh/plugins/tmuxinator')
-rw-r--r--.oh-my-zsh/plugins/tmuxinator/README.md19
-rw-r--r--.oh-my-zsh/plugins/tmuxinator/_tmuxinator21
-rw-r--r--.oh-my-zsh/plugins/tmuxinator/tmuxinator.plugin.zsh5
3 files changed, 45 insertions, 0 deletions
diff --git a/.oh-my-zsh/plugins/tmuxinator/README.md b/.oh-my-zsh/plugins/tmuxinator/README.md
new file mode 100644
index 0000000..994d8d4
--- /dev/null
+++ b/.oh-my-zsh/plugins/tmuxinator/README.md
@@ -0,0 +1,19 @@
+# Tmuxinator plugin
+
+This plugin provides completion for [tmuxinator](https://github.com/tmuxinator/tmuxinator),
+as well as aliases for frequent tmuxinator commands.
+
+To use it add `tmuxinator` to the plugins array in your zshrc file.
+
+```zsh
+plugins=(... tmuxinator)
+```
+
+## Aliases
+
+| Alias | Command | Description |
+| ------ | ---------------- | ------------------------ |
+| `txs ` | tmuxinator start | Start Tmuxinator |
+| `txo ` | tmuxinator open | Open project for editing |
+| `txn ` | tmuxinator new | Create project |
+| `txl ` | tmuxinator list | List projects |
diff --git a/.oh-my-zsh/plugins/tmuxinator/_tmuxinator b/.oh-my-zsh/plugins/tmuxinator/_tmuxinator
new file mode 100644
index 0000000..37032f8
--- /dev/null
+++ b/.oh-my-zsh/plugins/tmuxinator/_tmuxinator
@@ -0,0 +1,21 @@
+_tmuxinator() {
+ local commands projects
+ commands=(${(f)"$(tmuxinator commands zsh)"})
+ projects=(${(f)"$(tmuxinator completions start)"})
+
+ if (( CURRENT == 2 )); then
+ _describe -t commands "tmuxinator subcommands" commands
+ _describe -t projects "tmuxinator projects" projects
+ elif (( CURRENT == 3)); then
+ case $words[2] in
+ copy|debug|delete|open|start)
+ _arguments '*:projects:($projects)'
+ ;;
+ esac
+ fi
+
+ return
+}
+
+compdef _tmuxinator tmuxinator mux
+alias mux="tmuxinator"
diff --git a/.oh-my-zsh/plugins/tmuxinator/tmuxinator.plugin.zsh b/.oh-my-zsh/plugins/tmuxinator/tmuxinator.plugin.zsh
new file mode 100644
index 0000000..166fa98
--- /dev/null
+++ b/.oh-my-zsh/plugins/tmuxinator/tmuxinator.plugin.zsh
@@ -0,0 +1,5 @@
+# aliases
+alias txs='tmuxinator start'
+alias txo='tmuxinator open'
+alias txn='tmuxinator new'
+alias txl='tmuxinator list'