refactor(alias-finder): Simplify --exact option activation

This commit is contained in:
Roeniss Moon 2025-03-23 23:49:46 +09:00
commit 3b550a69f6
No known key found for this signature in database
GPG key ID: 9E9AE088DBD537FB

View file

@ -38,9 +38,9 @@ alias-finder() {
alias | grep -E "$filter" | grep -E "=$finder"
if [[ $exact == true ]]; then
break # because exact case is only one
elif [[ $longer = true ]]; then
$exact && break # because exact case is only one
if [[ $longer = true ]]; then
break # because above grep command already found every longer aliases during first cycle
fi