1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2025-02-05 07:43:22 -08: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 [ -z "$PS1" ] && return
if [ "$TERM" = rxvt-unicode-256color ]; then
export TERM=xterm-256color
fi
HISTCONTROL=erasedups HISTCONTROL=erasedups
HISTSIZE=1000 HISTSIZE=1000
HISTFILESIZE=2000 HISTFILESIZE=2000
@ -13,11 +9,15 @@ shopt -s checkwinsize
#shopt -s physical # chaselinks (doesn't exist?) #shopt -s physical # chaselinks (doesn't exist?)
set -o hashall # enable hash command 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\]" _title="\[\033]2;\w\a\]"
else else
_title="" _title=""
fi fi
unset t
Csucc=$'\\[\e[42m\\]' Csucc=$'\\[\e[42m\\]'
Cfail=$'\\[\e[41m\\]' Cfail=$'\\[\e[41m\\]'