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\]' ;; *) PS1+='\[\e[31m\]' ;;
esac esac
if [[ "$PWD" = "$HOME" ]]; then if [[ "$PWD" == "$HOME" ]]; then
PS1+="~" PS1+="~"
elif [[ "$PWD" = / ]]; then elif [[ "$PWD" == / ]]; then
PS1+=/ PS1+=/
else else
PS1+="${PWD##*/}" PS1+="${PWD##*/}"