1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-05-18 09:53:22 -07:00

update bash $TERM checks

This commit is contained in:
Connor Olding 2021-10-14 00:08:47 -07:00
parent e0c3005f50
commit 9a168298c9

View File

@ -1,9 +1,5 @@
[ -z "$PS1" ] && return
if [ "$TERM" = rxvt-unicode-256color ]; then
export TERM=xterm-256color
fi
HISTCONTROL=erasedups
HISTSIZE=1000
HISTFILESIZE=2000
@ -13,11 +9,15 @@ shopt -s checkwinsize
#shopt -s physical # chaselinks (doesn't exist?)
set -o hashall # enable hash command
if [[ "$TERM" = xterm* ]]; then
[ "$TERM" != rxvt-unicode-256color ] || export TERM=xterm-256color
t="${TERM%%-*}"
if [ "$t" = xterm ] || [ "$t" = screen ] || [ "$t" = tmux ]; then
_title="\[\033]2;\w\a\]"
else
_title=""
fi
unset t
Csucc=$'\\[\e[42m\\]'
Cfail=$'\\[\e[41m\\]'