From 63db89c4a32cab3164c8a3871f7489ec0e68e7a3 Mon Sep 17 00:00:00 2001 From: Harald Pfeiffer Date: Sat, 15 Mar 2025 21:08:58 +0100 Subject: Fix: SunOS' grep does not know "-P" --- .bash/aliases.bash | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.bash/aliases.bash b/.bash/aliases.bash index 85b8737..dff312a 100644 --- a/.bash/aliases.bash +++ b/.bash/aliases.bash @@ -6,8 +6,13 @@ if [ "$TERM" != "dumb" ];then eval "$(dircolors -b)" alias ls="ls --color=auto" - alias grep="grep --color=auto" - alias egrep="egrep --color=auto" + case "$OSNAME" in + 'sunos') ;; + *) + alias grep="grep --color=auto" + alias egrep="egrep --color=auto" + ;; + esac fi # shellcheck disable=SC2139 if [ -n "$EDITOR" ]; then -- cgit v1.2.3