diff options
Diffstat (limited to '')
-rw-r--r-- | completion/_auto.zsh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/completion/_auto.zsh b/completion/_auto.zsh new file mode 100644 index 0000000..24875b8 --- /dev/null +++ b/completion/_auto.zsh @@ -0,0 +1,23 @@ +#compdef auto. + +_arguments \ + '1:flag:->flags' \ + '*:: :->args' + +case "$state" in + flags) + local -a opts + opts=( + '-t:Topography file' + '-i:Install dotfiles specified in the .topography file' + '-u:Uninstall dotfiles specified in the .topography file' + '-b:Exit at first error' + '-h:Show help text' + ) + _describe 'flags' opts + ;; + args) + case $line[1] in + -t) _files ;; + esac +esac |