{bash,zsh}rc: note ripgrep dependency for batgrep

This commit is contained in:
Aminda Suomalainen 2025-08-06 18:25:00 +03:00
parent e9f36b81ce
commit 4ef8a43b01
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723
2 changed files with 8 additions and 4 deletions

View File

@ -696,8 +696,10 @@ if ! hash btraceback 2> /dev/null; then
#alias -g -- -h='-h 2>&1 | bat --language=help --style=plain'
#alias -g -- --help='--help 2>&1 | bat --language=help --style=plain'
fi
if hash batgrep 2> /dev/null; then
alias grep=batgrep
if hash rg 2> /dev/null; then
if hash batgrep 2> /dev/null; then
alias grep=batgrep
fi
fi
if hash batman 2> /dev/null; then
eval "$(batman --export-env)"

View File

@ -684,8 +684,10 @@ if ! hash btraceback 2> /dev/null; then
alias -g -- -h='-h 2>&1 | bat --language=help --style=plain'
alias -g -- --help='--help 2>&1 | bat --language=help --style=plain'
fi
if hash batgrep 2> /dev/null; then
alias grep=batgrep
if hash rg 2> /dev/null; then
if hash batgrep 2> /dev/null; then
alias grep=batgrep
fi
fi
if hash batman 2> /dev/null; then
eval "$(batman --export-env)"