dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit e2d87d931e7e153ad3f95cbf43b6b37634d73f49
parent 7f1c4c85b31de7f8558eb0c31a51f6b6ab5b5a58
Author: Chris Bracken <chris@bracken.jp>
Date:   Sat, 10 Dec 2022 11:21:07 -0800

Don't enable grep --color alias on OpenBSD

OpenBSD grep doesn't include the --color flag. Only enable it on
FreeBSD, macOS, and Linux.

Diffstat:
M.aliases | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/.aliases b/.aliases @@ -6,9 +6,11 @@ if [[ "$(uname)" == FreeBSD || "$(uname)" == Darwin ]]; then elif [[ "$(uname)" == Linux ]]; then alias ls='ls -F --color=auto' fi -alias grep='grep --color=auto' -alias fgrep='fgrep --color=auto' -alias egrep='egrep --color=auto' +if [[ "$(uname)" == FreeBSD || "$(uname)" == Darwin || "$(uname)" == Linux ]]; then + alias grep='grep --color=auto' + alias fgrep='fgrep --color=auto' + alias egrep='egrep --color=auto' +fi alias ag='ag --color-line-number "30;33" --color-path "30;32" --color-match "1;31"' # some useful aliases