diff options
author | Squibid <me@zacharyscheiman.com> | 2024-08-10 13:58:36 -0400 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2024-08-10 15:07:54 -0400 |
commit | bc6c8cf0b836325e0cbcd05bb33d3ec27b255b63 (patch) | |
tree | 7b94afd22322b6c8cddf49b358bc398d1ee99906 /completion/_auto.zsh | |
parent | f1c4d798251a5bac90ccd289da1dec7839beafe8 (diff) | |
download | auto.s-bc6c8cf0b836325e0cbcd05bb33d3ec27b255b63.tar.gz auto.s-bc6c8cf0b836325e0cbcd05bb33d3ec27b255b63.tar.bz2 auto.s-bc6c8cf0b836325e0cbcd05bb33d3ec27b255b63.zip |
Diffstat (limited to 'completion/_auto.zsh')
-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 |