Remove $TERM declaration & update .gitignore

This commit is contained in:
Sonny Bakker 2024-05-23 20:44:04 +02:00
parent ede15858ab
commit f310746458
2 changed files with 6 additions and 6 deletions

10
.bashrc
View file

@ -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

2
.gitignore vendored
View file

@ -11,6 +11,8 @@ local_settings.py
db.sqlite3
db.sqlite3-journal
media
env/
upgrade_env/
# If your build process includes running collectstatic, then you probably don't need or want to include staticfiles/
# in your Git repository. Update and uncomment the following line accordingly.