Unverified Commit 0c7ce363 authored by hellzbellz's avatar hellzbellz Committed by GitHub

chore(lib): only create `afind` alias if `ack` is installed (#11017)

parent 0726c109
...@@ -24,10 +24,10 @@ env_default 'LESS' '-R' ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment