Remove $TERM declaration & update .gitignore
This commit is contained in:
parent
ede15858ab
commit
f310746458
2 changed files with 6 additions and 6 deletions
10
.bashrc
10
.bashrc
|
|
@ -24,11 +24,6 @@ shopt -s checkwinsize
|
|||
# make less more friendly for non-text input files, see lesspipe(1)
|
||||
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
|
||||
|
||||
# set term if it is not set yet by the terminal
|
||||
if [ -z "$TERM" ]; then
|
||||
export TERM="tmux-256color"
|
||||
fi
|
||||
|
||||
# set a fancy prompt (non-color, unless we know we "want" color)
|
||||
case "$TERM" in
|
||||
xterm-color|*-256color) color_prompt=yes;;
|
||||
|
|
@ -53,7 +48,8 @@ if [ "$force_color_prompt" == "yes" ] && [ -z "$color_prompt" ]; then
|
|||
fi
|
||||
|
||||
if [ "$color_prompt" = yes ]; then
|
||||
PS1="\[\033[1;35m\]\u\[\033[1;34m\]@\[\033[1;30m\]\h \[\033[1;34m\]\w\\[\033[0;37m\]$ "
|
||||
PS1="\[\033[1;35m\]\u\[\033[1;34m\]@\[\033[0;34m\]\h \[\033[1;34m\]\w\\[\033[0;30m\]$ "
|
||||
|
||||
else
|
||||
PS1='\u@\h:\w\$ '
|
||||
fi
|
||||
|
|
@ -99,3 +95,5 @@ fi
|
|||
if [ -f ~/.bashrc.override ]; then
|
||||
. ~/.bashrc.override
|
||||
fi
|
||||
|
||||
source /usr/share/nvm/init-nvm.sh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue