Skip to content

Commit

Permalink
Correct ripgrep aload
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoColomb authored Oct 21, 2024
1 parent 83d1df6 commit 7c898fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions private_dot_bash/aliases
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ alias ls="command ls ${colorflag}"

# Always enable colored `grep` output
# Note: `GREP_OPTIONS="--color=auto"` is deprecated, hence the alias usage.
if [ -x "$(command -v ripgrep)" ]; then
if [ -x "$(command -v rg)" ]; then
# Use ripgrep if available
alias grep="ripgrep"
alias grep="rg"
else
alias grep='grep --color=auto'
fi
Expand Down

0 comments on commit 7c898fc

Please sign in to comment.