diff --git a/lib/cli.zsh b/lib/cli.zsh index 6bdbb9839..94ca31708 100644 --- a/lib/cli.zsh +++ b/lib/cli.zsh @@ -41,12 +41,12 @@ function _omz { refs=("${(@f)$(builtin cd -q "$ZSH"; command git for-each-ref --format="%(refname:short):%(subject)" refs/heads refs/tags)}") _describe 'command' refs ;; plugin) subcmds=( - 'cat:Show plugin source' 'disable:Disable plugin(s)' 'enable:Enable plugin(s)' 'info:Get plugin information' 'list:List plugins' 'load:Load plugin(s)' + 'view:Show plugin source' ) _describe 'command' subcmds ;; pr) subcmds=('clean:Delete all Pull Request branches' 'test:Test a Pull Request') @@ -204,12 +204,12 @@ Usage: ${(j: :)${(s.::.)0#_}} [options] Available commands: - cat Show the source of a plugin disable Disable plugin(s) enable Enable plugin(s) info Get information of a plugin list List all available Oh My Zsh plugins load Load plugin(s) + view Show the source of a plugin EOF return 1 @@ -221,7 +221,7 @@ EOF $0::$command "$@" } -function _omz::plugin::cat { +function _omz::plugin::view { if [[ -z "$1" ]]; then echo >&2 "Usage: ${(j: :)${(s.::.)0#_}} " return 1