Added tmuxp completions
Right now, it only completes ~/.tmuxp projects (xml and yaml), I'll add local file and projectdir completions later.
This commit is contained in:
parent
fa1c720584
commit
fdbcdc86e2
|
@ -0,0 +1,16 @@
|
|||
#compdef tmuxp
|
||||
|
||||
if (( CURRENT == 2 )); then
|
||||
_alternative 'act:actions:((\
|
||||
convert\:"Convert a tmuxp config between JSON and YAML."\ \
|
||||
freeze\:"Snapshot a session into a config." \
|
||||
import\:"Import a teamocil/tmuxinator config." \
|
||||
load\:"Load tmuxp workspaces." \))'
|
||||
return
|
||||
else
|
||||
case "$words[2]" in
|
||||
(load)
|
||||
_alternative 'user:user sessions:_files -W ~/.tmuxp -g \*.\(yaml\|json\)\(:r\)'
|
||||
;;
|
||||
esac
|
||||
fi
|
Loading…
Reference in New Issue