mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
Display completions from plugin if .plugin.zsh. isn't present.
This commit is contained in:
parent
be58a5233c
commit
73044b4eb7
1 changed files with 1 additions and 1 deletions
|
|
@ -228,7 +228,7 @@ function _omz::plugin::view {
|
|||
fi
|
||||
|
||||
local plugin_source
|
||||
for plugin_source in "$ZSH_CUSTOM/plugins/$1/$1.plugin.zsh" "$ZSH/plugins/$1/$1.plugin.zsh"; do
|
||||
for plugin_source in "$ZSH_CUSTOM/plugins/$1/$1.plugin.zsh" "$ZSH_CUSTOM/plugins/$1/_$1" "$ZSH/plugins/$1/$1.plugin.zsh" "$ZSH/plugins/$1/_$1"; do
|
||||
if [[ -f "$plugin_source" ]]; then
|
||||
# If being piped, just cat the source
|
||||
if [[ ! -t 1 ]]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue