From 6805a49b89381b54ca459f928b202dd217b667fd Mon Sep 17 00:00:00 2001 From: Paul Gideon Dann Date: Tue, 13 Mar 2012 15:46:02 +0000 Subject: [PATCH] Using arithmetic brackets for numerical comparison, instead of conditional brackets. Using == with [[ is a string comparison, not a numerical comparison as it ought to be. --- themes/giddie/prompt_giddie_setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/giddie/prompt_giddie_setup b/themes/giddie/prompt_giddie_setup index c3d3d4e7..74cce097 100644 --- a/themes/giddie/prompt_giddie_setup +++ b/themes/giddie/prompt_giddie_setup @@ -24,7 +24,7 @@ function prompt_giddie_precmd { # Choose prompt symbol based on whether on not we're in a repository. { git branch 2>&1 } >/dev/null - if [[ $? == 0 ]]; then + if (( $? == 0 )); then prompt_symbol='±' else prompt_symbol=')'