bash: use == for comparison
This commit is contained in:
parent
72f1eec97e
commit
5d99efa152
1 changed files with 2 additions and 2 deletions
|
@ -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##*/}"
|
||||
|
|
Loading…
Reference in a new issue