mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-11-15 17:17:22 +01:00
{bash,zsh}rc: comment out mysterious TERM checkers
This commit is contained in:
parent
e09a41dd51
commit
bd0540f41d
38
rc/bashrc
38
rc/bashrc
@ -62,9 +62,9 @@ if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# set a fancy prompt (non-color, unless we know we "want" color)
|
# set a fancy prompt (non-color, unless we know we "want" color)
|
||||||
case "$TERM" in
|
#case "$TERM" in
|
||||||
xterm-color) color_prompt=yes ;;
|
# xterm-color) color_prompt=yes ;;
|
||||||
esac
|
#esac
|
||||||
|
|
||||||
force_color_prompt=yes
|
force_color_prompt=yes
|
||||||
|
|
||||||
@ -95,12 +95,12 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# If this is an xterm set the title to user@host:dir
|
# If this is an xterm set the title to user@host:dir
|
||||||
case "$TERM" in
|
#case "$TERM" in
|
||||||
xterm* | *rxvt*)
|
# xterm* | *rxvt*)
|
||||||
PS1="\[\e]0;\u@\h: \w\a\]$PS1"
|
# PS1="\[\e]0;\u@\h: \w\a\]$PS1"
|
||||||
;;
|
# ;;
|
||||||
*) ;;
|
# *) ;;
|
||||||
esac
|
#esac
|
||||||
|
|
||||||
if hash dircolors 2> /dev/null; then
|
if hash dircolors 2> /dev/null; then
|
||||||
#test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
#test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
||||||
@ -203,13 +203,13 @@ fi
|
|||||||
(ulimit -c unlimited &)
|
(ulimit -c unlimited &)
|
||||||
|
|
||||||
# More colours
|
# More colours
|
||||||
if [[ $TERM == 'xterm' ]]; then
|
#if [[ $TERM == 'xterm' ]]; then
|
||||||
export TERM=xterm-256color
|
# export TERM=xterm-256color
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
if [[ $TERM == 'screen' ]]; then
|
#if [[ $TERM == 'screen' ]]; then
|
||||||
export TERM=screen-256color
|
# export TERM=screen-256color
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
# Things after this are just examples and should be put to some other file, which is sourced above.
|
# 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 '
|
alias rscpr='rsync -h --progress -azvv '
|
||||||
|
|
||||||
# TMUX specific
|
# TMUX specific
|
||||||
alias tmux="TERM=tmux-256color \tmux -2u"
|
#alias tmux="TERM=tmux-256color \tmux -2u"
|
||||||
alias attach="tmux attach-session"
|
alias attach="tmux attach-session"
|
||||||
alias detach="tmux detach"
|
alias detach="tmux detach"
|
||||||
|
|
||||||
@ -1019,8 +1019,8 @@ if [ -f ~/.bash_custom ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# If $TMUX, then TERM is tmux-256color
|
# If $TMUX, then TERM is tmux-256color
|
||||||
if [ -v TMUX ]; then
|
#if [ -v TMUX ]; then
|
||||||
TERM=tmux-256color
|
# TERM=tmux-256color
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
# vim: filetype=bash
|
# vim: filetype=bash
|
||||||
|
|||||||
20
rc/zshrc
20
rc/zshrc
@ -168,13 +168,13 @@ fi
|
|||||||
(ulimit -c unlimited &)
|
(ulimit -c unlimited &)
|
||||||
|
|
||||||
# More colours
|
# More colours
|
||||||
if [[ $TERM == 'xterm' ]]; then
|
#if [[ $TERM == 'xterm' ]]; then
|
||||||
export TERM=xterm-256color
|
# export TERM=xterm-256color
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
if [[ $TERM == 'screen' ]]; then
|
#if [[ $TERM == 'screen' ]]; then
|
||||||
export TERM=screen-256color
|
# export TERM=screen-256color
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
# Sets the default editor.
|
# Sets the default editor.
|
||||||
#export EDITOR=nvim # MIKAELA_GREP MIKAELA_GREP_ENVIRONMENT
|
#export EDITOR=nvim # MIKAELA_GREP MIKAELA_GREP_ENVIRONMENT
|
||||||
@ -345,7 +345,7 @@ alias rscp='rsync -h --progress -avz '
|
|||||||
alias rscpr='rsync -h --progress -azvv '
|
alias rscpr='rsync -h --progress -azvv '
|
||||||
|
|
||||||
# TMUX specific
|
# TMUX specific
|
||||||
alias tmux="TERM=tmux-256color \tmux -2u"
|
#alias tmux="TERM=tmux-256color \tmux -2u"
|
||||||
alias attach="tmux attach-session"
|
alias attach="tmux attach-session"
|
||||||
alias detach="tmux detach"
|
alias detach="tmux detach"
|
||||||
|
|
||||||
@ -1012,8 +1012,8 @@ if [ -f ~/.warnings ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# If $TMUX, then TERM is tmux-256color
|
# If $TMUX, then TERM is tmux-256color
|
||||||
if [ -v TMUX ]; then
|
#if [ -v TMUX ]; then
|
||||||
TERM=tmux-256color
|
# TERM=tmux-256color
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
# vim: filetype=zsh
|
# vim: filetype=zsh
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user