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

master
hellzbellz 4 years ago committed by GitHub
parent 0726c1099f
commit 0c7ce363c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      lib/misc.zsh

@ -24,10 +24,10 @@ env_default 'LESS' '-R'
## super user alias
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
alias afind='ack-grep -il'
else
elif (( $+commands[ack] )); then
alias afind='ack -il'
fi

Loading…
Cancel
Save