mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
Change from 'cat' to 'view'.
This commit is contained in:
parent
9fc3bd782f
commit
be58a5233c
1 changed files with 3 additions and 3 deletions
|
|
@ -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)}")
|
refs=("${(@f)$(builtin cd -q "$ZSH"; command git for-each-ref --format="%(refname:short):%(subject)" refs/heads refs/tags)}")
|
||||||
_describe 'command' refs ;;
|
_describe 'command' refs ;;
|
||||||
plugin) subcmds=(
|
plugin) subcmds=(
|
||||||
'cat:Show plugin source'
|
|
||||||
'disable:Disable plugin(s)'
|
'disable:Disable plugin(s)'
|
||||||
'enable:Enable plugin(s)'
|
'enable:Enable plugin(s)'
|
||||||
'info:Get plugin information'
|
'info:Get plugin information'
|
||||||
'list:List plugins'
|
'list:List plugins'
|
||||||
'load:Load plugin(s)'
|
'load:Load plugin(s)'
|
||||||
|
'view:Show plugin source'
|
||||||
)
|
)
|
||||||
_describe 'command' subcmds ;;
|
_describe 'command' subcmds ;;
|
||||||
pr) subcmds=('clean:Delete all Pull Request branches' 'test:Test a Pull Request')
|
pr) subcmds=('clean:Delete all Pull Request branches' 'test:Test a Pull Request')
|
||||||
|
|
@ -204,12 +204,12 @@ Usage: ${(j: :)${(s.::.)0#_}} <command> [options]
|
||||||
|
|
||||||
Available commands:
|
Available commands:
|
||||||
|
|
||||||
cat <plugin> Show the source of a plugin
|
|
||||||
disable <plugin> Disable plugin(s)
|
disable <plugin> Disable plugin(s)
|
||||||
enable <plugin> Enable plugin(s)
|
enable <plugin> Enable plugin(s)
|
||||||
info <plugin> Get information of a plugin
|
info <plugin> Get information of a plugin
|
||||||
list List all available Oh My Zsh plugins
|
list List all available Oh My Zsh plugins
|
||||||
load <plugin> Load plugin(s)
|
load <plugin> Load plugin(s)
|
||||||
|
view <plugin> Show the source of a plugin
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
return 1
|
return 1
|
||||||
|
|
@ -221,7 +221,7 @@ EOF
|
||||||
$0::$command "$@"
|
$0::$command "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
function _omz::plugin::cat {
|
function _omz::plugin::view {
|
||||||
if [[ -z "$1" ]]; then
|
if [[ -z "$1" ]]; then
|
||||||
echo >&2 "Usage: ${(j: :)${(s.::.)0#_}} <plugin>"
|
echo >&2 "Usage: ${(j: :)${(s.::.)0#_}} <plugin>"
|
||||||
return 1
|
return 1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue