mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 07:43:31 +01:00
chore(lib): only create afind
alias if ack
is installed (#11017)
This commit is contained in:
parent
0726c1099f
commit
0c7ce363c9
@ -24,10 +24,10 @@ env_default 'LESS' '-R'
|
|||||||
## super user alias
|
## super user alias
|
||||||
alias _='sudo '
|
alias _='sudo '
|
||||||
|
|
||||||
## more intelligent acking for ubuntu users
|
## more intelligent acking for ubuntu users and no alias for users without ack
|
||||||
if (( $+commands[ack-grep] )); then
|
if (( $+commands[ack-grep] )); then
|
||||||
alias afind='ack-grep -il'
|
alias afind='ack-grep -il'
|
||||||
else
|
elif (( $+commands[ack] )); then
|
||||||
alias afind='ack -il'
|
alias afind='ack -il'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user