From fdbcdc86e2c6b204cc72609efa9953aa82d6da79 Mon Sep 17 00:00:00 2001 From: Andrej Radovic Date: Mon, 8 May 2017 17:45:19 +0200 Subject: [PATCH] Added tmuxp completions Right now, it only completes ~/.tmuxp projects (xml and yaml), I'll add local file and projectdir completions later. --- src/_tmuxp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/_tmuxp diff --git a/src/_tmuxp b/src/_tmuxp new file mode 100644 index 0000000..7e62b9d --- /dev/null +++ b/src/_tmuxp @@ -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