Browse files

Using arithmetic brackets for numerical comparison, instead of condit…

…ional brackets.

Using == with [[ is a string comparison, not a numerical comparison as it ought
to be.
  • Loading branch information...
1 parent bafde1c commit f19a52415ec0c1389a130ceee6983873693b5a89 @giddie committed Mar 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 themes/giddie/prompt_giddie_setup
View
2 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=')'

0 comments on commit f19a524

Please sign in to comment.