PS1 put non-printable characters in brackets

This commit is contained in:
Andrew Scott 2023-04-15 14:39:56 -04:00
parent 398b98861f
commit e97a808f38
Signed by: a
GPG key ID: 7CD5A5977E4931C1

View file

@ -5,7 +5,7 @@
# Return if non-interactive # Return if non-interactive
[[ $- != *i* ]] && return [[ $- != *i* ]] && return
PS1='[\e[38;5;107m\u\e[0m@\h \e[38;5;74m\w\e[0m]\$ ' PS1='[\[\e[38;5;107m\]\u\[\e[0m\]@\h \[\e[38;5;74m\]\w\[\e[0m\]]\$ '
alias diff='diff --color=auto' alias diff='diff --color=auto'
alias grep='grep --color=auto' alias grep='grep --color=auto'