Mercurial > hg > Members > atton > pmux
view completion/pmuxinator.zsh @ 2:67a6071afec7
Rename tmuxinator -> pmuxinator
$ zmv **/*tmuxinator* **/*pmuxinator*
$ gsed -e 's/tmuxinator/pmuxinator/g' -i **/*.*
$ gsed -e 's/Tmuxinator/Pmuxinator/g' -i **/*.*
author | Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 21 Jul 2014 08:32:00 +0900 |
parents | completion/tmuxinator.zsh@39b72942a4d2 |
children |
line wrap: on
line source
#!/usr/bin/env zsh if [[ ! -o interactive ]]; then return fi compctl -K _pmuxinator pmuxinator mux _pmuxinator() { local words completions read -cA words if [ "${#words}" -eq 2 ]; then completions="$(pmuxinator commands)" else completions="$(pmuxinator completions ${words[2,-2]})" fi reply=("${(ps:\n:)completions}") }