mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-12 01:52:31 +01:00
refactor(alias-finder): Simplify --exact option activation
This commit is contained in:
parent
1297908265
commit
3b550a69f6
1 changed files with 3 additions and 3 deletions
|
|
@ -38,9 +38,9 @@ alias-finder() {
|
||||||
|
|
||||||
alias | grep -E "$filter" | grep -E "=$finder"
|
alias | grep -E "$filter" | grep -E "=$finder"
|
||||||
|
|
||||||
if [[ $exact == true ]]; then
|
$exact && break # because exact case is only one
|
||||||
break # because exact case is only one
|
|
||||||
elif [[ $longer = true ]]; then
|
if [[ $longer = true ]]; then
|
||||||
break # because above grep command already found every longer aliases during first cycle
|
break # because above grep command already found every longer aliases during first cycle
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue