Update plugins/alias-finder/alias-finder.plugin.zsh

This commit is contained in:
Carlo Sala 2025-07-21 18:57:47 +02:00 committed by GitHub
commit bfe1083298
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -43,7 +43,7 @@ alias-finder() {
filter="^'?.{1,$((cmdLen - 1))}'?=" # some aliases is surrounded by single quotes filter="^'?.{1,$((cmdLen - 1))}'?=" # some aliases is surrounded by single quotes
fi fi
if command -v rg >/dev/null 2>&1; then if (( $+commands[rg] )); then
alias | rg "$filter" | rg "=$finder" alias | rg "$filter" | rg "=$finder"
else else
alias | grep -E "$filter" | grep -E "=$finder" alias | grep -E "$filter" | grep -E "=$finder"