From bd0540f41d5416407152c1efd70ef4f6c3d9371d Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Mon, 6 Oct 2025 21:52:48 +0300 Subject: [PATCH] {bash,zsh}rc: comment out mysterious TERM checkers --- rc/bashrc | 38 +++++++++++++++++++------------------- rc/zshrc | 20 ++++++++++---------- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/rc/bashrc b/rc/bashrc index af34f290..66f87812 100755 --- a/rc/bashrc +++ b/rc/bashrc @@ -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 diff --git a/rc/zshrc b/rc/zshrc index d5c32fed..ba04bc2f 100755 --- a/rc/zshrc +++ b/rc/zshrc @@ -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