mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
Refactor "{{which,command -v} => _omb_util_{binary,command}_exists}"
`which` has been deprecated in Debian (at least, the rolling release installed on chromebooks via Linux Containers) https://github.com/ohmybash/oh-my-bash/pull/239#issuecomment-1000974461 Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
This commit is contained in:
@@ -11,7 +11,7 @@ _omb_util_alias _='sudo'
|
||||
_omb_util_alias please='sudo'
|
||||
|
||||
## more intelligent acking for ubuntu users
|
||||
if which ack-grep &> /dev/null; then
|
||||
if _omb_util_binary_exists ack-grep; then
|
||||
_omb_util_alias afind='ack-grep -il'
|
||||
else
|
||||
_omb_util_alias afind='ack -il'
|
||||
|
Reference in New Issue
Block a user