From 5d99efa152ac45e634085b4862417f564b3cb98c Mon Sep 17 00:00:00 2001 From: buffet Date: Fri, 15 Sep 2023 08:33:47 +0200 Subject: [PATCH] bash: use == for comparison --- dots/.bashrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dots/.bashrc b/dots/.bashrc index d875903..f98e8fb 100644 --- a/dots/.bashrc +++ b/dots/.bashrc @@ -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##*/}"