Simplify bash prompt when terminal is dumb

This commit is contained in:
Daniel - 2020-01-03 18:54:39 +01:00
parent e34a3bd88a
commit 78a9fc3f8c
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 5 additions and 1 deletions

6
bashrc
View File

@ -34,7 +34,11 @@ bind '"\en": history-search-forward'
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# Simple prompt
PS1="┌[\e[0;32m\u@\h\e[m] [\e[0;31m\w\e[m] [\t]\n└── "
if [[ "$TERM" = "dumb" ]]; then
PS1="> "
else
PS1="┌[\e[0;32m\u@\h\e[m] [\e[0;31m\w\e[m] [\t]\n└── "
fi
# Enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then