commit 88326b24acdc90f9df2a63f62c5204324439ed4b parent 83d53529fd4878783c2e85b2b7ca2c6a242b934d Author: Alex Balgavy <a.balgavy@gmail.com> Date: Fri, 24 Apr 2020 23:58:41 +0200 zsh completions for updatemaster Former-commit-id: 0e151c497ecf89df40e5f6aaf1ceebe9cf9e696a Diffstat:
A | shell/zsh-completions-mine/_updatemaster | | | 11 | +++++++++++ |
M | shell/zshrc | | | 2 | +- |
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/shell/zsh-completions-mine/_updatemaster b/shell/zsh-completions-mine/_updatemaster @@ -0,0 +1,11 @@ +#compdef updatemaster +local arguments +arguments=( + '-c[upgrade all casks]' + '-f[upgrade all formulas]' + '-s[select casks to upgrade]' + '-n[do not upgrade anything]' + '-h[show help]' +) + +_arguments -s $arguments diff --git a/shell/zshrc b/shell/zshrc @@ -17,7 +17,7 @@ source_if_exists() { setopt interactivecomments # Enable extra completions -fpath=($DOTFILES/shell/zsh-completions/src $fpath) +fpath=($DOTFILES/shell/zsh-completions/src $DOTFILES/shell/zsh-completions-mine/ $fpath) autoload -Uz compinit && compinit source $DOTFILES/shell/oh-my-zsh-defaults/completion.zsh source $DOTFILES/shell/oh-my-zsh-defaults/directories.zsh