bash: use == for comparison

This commit is contained in:
buffet 2023-09-15 08:33:47 +02:00
parent 72f1eec97e
commit 5d99efa152

View file

@ -18,9 +18,9 @@ __prompt() {
*) PS1+='\[\e[31m\]' ;;
esac
if [[ "$PWD" = "$HOME" ]]; then
if [[ "$PWD" == "$HOME" ]]; then
PS1+="~"
elif [[ "$PWD" = / ]]; then
elif [[ "$PWD" == / ]]; then
PS1+=/
else
PS1+="${PWD##*/}"