mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-23 02:35:38 +01:00
Update plugins/alias-finder/alias-finder.plugin.zsh
This commit is contained in:
parent
25b2c9f37e
commit
bfe1083298
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ alias-finder() {
|
|||
filter="^'?.{1,$((cmdLen - 1))}'?=" # some aliases is surrounded by single quotes
|
||||
fi
|
||||
|
||||
if command -v rg >/dev/null 2>&1; then
|
||||
if (( $+commands[rg] )); then
|
||||
alias | rg "$filter" | rg "=$finder"
|
||||
else
|
||||
alias | grep -E "$filter" | grep -E "=$finder"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue