more tweaking, idiot

This commit is contained in:
2024-11-05 14:26:14 -05:00
parent df1d890b3c
commit 8843f5d24c
2 changed files with 17 additions and 11 deletions

21
bashrc
View File

@@ -71,15 +71,7 @@ stty -ixon # disable ^S/^Q flow control
#
# colors
#
if [[ "$OSTYPE" == "darwin"* ]] || [[ "$OSTYPE" == "sun"* ]] ; then
# BSD/macOS
export LS_COLORS='ExGxbEaECxxEhEhBaDaCaD'
else
# Linux
export LS_COLORS='di=36:ln=35:su=31;47:sg=35;47'
fi
#
export GREP_COLOR='mt=1;36'
export LESS="-R" # less colored output
export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking
@@ -89,6 +81,15 @@ export LESS_TERMCAP_se=$'\E[0m' # end standout-mode
export LESS_TERMCAP_so=$'\E[38;5;246m' # begin standout-mode - info box
export LESS_TERMCAP_ue=$'\E[0m' # end underline
export LESS_TERMCAP_us=$'\E[04;38;5;146m' # begin underline
# dir colors (https://geoff.greer.fm/lscolors/)
if [[ "$OSTYPE" == "darwin"* ]] || [[ "$OSTYPE" == "sun"* ]] ; then
# BSD/macOS
export LS_COLORS='ExGxbEaECxxEhEhBaDaCaD'
else
# Linux
export LS_COLORS='di=36:ln=35:su=31;47:sg=35;47'
fi
#
@@ -176,7 +177,7 @@ PS1+='\[${PROMPT_COLORS[3]}\]\h '
# PS1+='\[${COLOR256[0]}\]\[${COLOR256[257]}\]'"$(zonename 2>/dev/null | grep -q '^global$' && echo 'GZ:')"'\[${COLOR256[256]}\]'
# uname
#PS1+='\[${PROMPT_COLORS[2]}\]'"$(uname | tr '[:upper:]' '[:lower:]')"' '
# PS1+='\[${PROMPT_COLORS[2]}\]'"$(uname | tr '[:upper:]' '[:lower:]')"' '
# cwd
PS1+='\[${PROMPT_COLORS[5]}\]\w '