Skip to content

Commit 2e1a419

Browse files
authored
Merge pull request magicmonty#408 from ogr3/allow_empty_name
Allow empty GIT_PROMPT_SYMBOLS_NO_REMOTE_TRACKING variable
2 parents c6fe130 + de045fa commit 2e1a419

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitprompt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ function replaceSymbols() {
448448
# Disable globbing, so a * could be used as symbol here
449449
set -f
450450

451-
if [[ ! -v GIT_PROMPT_SYMBOLS_NO_REMOTE_TRACKING ]]; then
451+
if [ -z ${GIT_PROMPT_SYMBOLS_NO_REMOTE_TRACKING+x} ]; then
452452
GIT_PROMPT_SYMBOLS_NO_REMOTE_TRACKING=L
453453
fi
454454

0 commit comments

Comments
 (0)