Display completions from plugin if .plugin.zsh. isn't present.

This commit is contained in:
Émilia Decaudin 2025-03-21 18:47:56 -04:00
commit 73044b4eb7
No known key found for this signature in database

View file

@ -228,7 +228,7 @@ function _omz::plugin::view {
fi fi
local plugin_source 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 [[ -f "$plugin_source" ]]; then
# If being piped, just cat the source # If being piped, just cat the source
if [[ ! -t 1 ]]; then if [[ ! -t 1 ]]; then