From bc6c8cf0b836325e0cbcd05bb33d3ec27b255b63 Mon Sep 17 00:00:00 2001 From: Squibid Date: Sat, 10 Aug 2024 13:58:36 -0400 Subject: add completion for zsh and .topography file to install script --- completion/_auto.zsh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 completion/_auto.zsh (limited to 'completion/_auto.zsh') 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 -- cgit v1.2.1