#zsh autocompletion #more info at https://askql.wordpress.com/2011/01/11/zsh-writing-own-completion/ #list all paths that completion files are found echo $fpath #create your own completion folder mkdir -p ~/.zsh/completion #####add to ~/.zshrc or ~/.zshrc.local##### # COMPLETION SETTINGS # add custom completion scripts fpath=(~/.zsh/completion $fpath) # compsys initialization autoload -U compinit compinit # show completion menu when number of options is at least 2 zstyle ':completion:*' menu select=2 ###############END RC file################ #Created completion file (must start with _) vim ~/.zsh/completion/_hello #compdef hello _arguments "1: :(World People)" #restart shell, type 'hello' and press tab. #World and People should now be options