| 123456789101112131415161718192021 |
- #!/usr/bin/env zsh
- # Completion of tmuxinator project names
- if [[ ! -o interactive ]]; then
- return
- fi
- compctl -K _tmuxinator tmuxinator mux
- _tmuxinator() {
- local words completions
- read -cA words
- if [ "${#words}" -eq 2 ]; then
- completions="$(tmuxinator commands)"
- else
- completions="$(tmuxinator completions ${words[2,-2]})"
- fi
- reply=("${(ps:\n:)completions}")
- }
|