{bash,zsh}rc: comment out mysterious TERM checkers

This commit is contained in:
Aminda Suomalainen 2025-10-06 21:52:48 +03:00
parent e09a41dd51
commit bd0540f41d
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723
2 changed files with 29 additions and 29 deletions

View File

@ -62,9 +62,9 @@ if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
fi
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color) color_prompt=yes ;;
esac
#case "$TERM" in
# xterm-color) color_prompt=yes ;;
#esac
force_color_prompt=yes
@ -95,12 +95,12 @@ else
fi
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm* | *rxvt*)
PS1="\[\e]0;\u@\h: \w\a\]$PS1"
;;
*) ;;
esac
#case "$TERM" in
# xterm* | *rxvt*)
# PS1="\[\e]0;\u@\h: \w\a\]$PS1"
# ;;
# *) ;;
#esac
if hash dircolors 2> /dev/null; then
#test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
@ -203,13 +203,13 @@ fi
(ulimit -c unlimited &)
# More colours
if [[ $TERM == 'xterm' ]]; then
export TERM=xterm-256color
fi
#if [[ $TERM == 'xterm' ]]; then
# export TERM=xterm-256color
#fi
if [[ $TERM == 'screen' ]]; then
export TERM=screen-256color
fi
#if [[ $TERM == 'screen' ]]; then
# export TERM=screen-256color
#fi
# Things after this are just examples and should be put to some other file, which is sourced above.
@ -381,7 +381,7 @@ alias rscp='rsync -h --progress -avz '
alias rscpr='rsync -h --progress -azvv '
# TMUX specific
alias tmux="TERM=tmux-256color \tmux -2u"
#alias tmux="TERM=tmux-256color \tmux -2u"
alias attach="tmux attach-session"
alias detach="tmux detach"
@ -1019,8 +1019,8 @@ if [ -f ~/.bash_custom ]; then
fi
# If $TMUX, then TERM is tmux-256color
if [ -v TMUX ]; then
TERM=tmux-256color
fi
#if [ -v TMUX ]; then
# TERM=tmux-256color
#fi
# vim: filetype=bash

View File

@ -168,13 +168,13 @@ fi
(ulimit -c unlimited &)
# More colours
if [[ $TERM == 'xterm' ]]; then
export TERM=xterm-256color
fi
#if [[ $TERM == 'xterm' ]]; then
# export TERM=xterm-256color
#fi
if [[ $TERM == 'screen' ]]; then
export TERM=screen-256color
fi
#if [[ $TERM == 'screen' ]]; then
# export TERM=screen-256color
#fi
# Sets the default editor.
#export EDITOR=nvim # MIKAELA_GREP MIKAELA_GREP_ENVIRONMENT
@ -345,7 +345,7 @@ alias rscp='rsync -h --progress -avz '
alias rscpr='rsync -h --progress -azvv '
# TMUX specific
alias tmux="TERM=tmux-256color \tmux -2u"
#alias tmux="TERM=tmux-256color \tmux -2u"
alias attach="tmux attach-session"
alias detach="tmux detach"
@ -1012,8 +1012,8 @@ if [ -f ~/.warnings ]; then
fi
# If $TMUX, then TERM is tmux-256color
if [ -v TMUX ]; then
TERM=tmux-256color
fi
#if [ -v TMUX ]; then
# TERM=tmux-256color
#fi
# vim: filetype=zsh