diff options
author | mail_redacted_for_web | 2025-03-15 21:10:04 +0100 |
---|---|---|
committer | mail_redacted_for_web | 2025-03-15 21:10:04 +0100 |
commit | 672a8bda092a03eb93e068deb2cbdcf355b06c68 (patch) | |
tree | f40830d6433f35648f8fd4a94c3b37de36219c6c /.bash/prompt.bash | |
parent | 4c0b4468554f704633350b0e0cdd4ad174da349b (diff) | |
download | dotfiles-672a8bda092a03eb93e068deb2cbdcf355b06c68.tar.bz2 |
Further grep adjustments where -P is not necessary (auto)
Diffstat (limited to '.bash/prompt.bash')
-rw-r--r-- | .bash/prompt.bash | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/.bash/prompt.bash b/.bash/prompt.bash index 8735cd4..956b3b9 100644 --- a/.bash/prompt.bash +++ b/.bash/prompt.bash @@ -48,13 +48,13 @@ case "$MYUID" in *solaris) FGC2="fgcolor 63";FGC3="fgcolor 124";; ubuntu) if [ "$OSMAJVER" -ge 24 ];then - if printf "%b" "$TERM"|grep -P 'xterm|256' > /dev/null;then + if printf "%b" "$TERM"|grep -E 'xterm|256' > /dev/null;then FGC2="fgcolor 125";FGC3="fgcolor 202" else FGC2="fgcolor 53";FGC3="fgcolor 184" fi elif [ "$OSMAJVER" -ge 22 ];then - if printf "%b" "$TERM"|grep -P 'xterm|256' > /dev/null;then + if printf "%b" "$TERM"|grep -E 'xterm|256' > /dev/null;then FGC2="fgcolor 208";FGC3="fgcolor 89" else FGC2="fgcolor 184";FGC3="fgcolor 53" @@ -101,13 +101,13 @@ case "$MYUID" in *solaris) FGC1="fgcolor 63";FGC3="fgcolor 124";; ubuntu) if [ "$OSMAJVER" -ge 24 ];then - if printf "%b" "$TERM"|grep -P 'xterm|256' > /dev/null;then + if printf "%b" "$TERM"|grep -E 'xterm|256' > /dev/null;then FGC1="fgcolor 125";FGC3="fgcolor 202" else FGC1="fgcolor 53";FGC3="fgcolor 184" fi elif [ "$OSMAJVER" -ge 22 ];then - if printf "%b" "$TERM"|grep -P 'xterm|256' > /dev/null;then + if printf "%b" "$TERM"|grep -E 'xterm|256' > /dev/null;then FGC1="fgcolor 89";FGC3="fgcolor 208" else FGC1="fgcolor 53";FGC3="fgcolor 184" |