1
0
Fork 0

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.
pull/32/head
Paul Gideon Dann 13 years ago
parent 66d551f76b
commit 6805a49b89

@ -24,7 +24,7 @@ function prompt_giddie_precmd {
# Choose prompt symbol based on whether on not we're in a repository. # Choose prompt symbol based on whether on not we're in a repository.
{ git branch 2>&1 } >/dev/null { git branch 2>&1 } >/dev/null
if [[ $? == 0 ]]; then if (( $? == 0 )); then
prompt_symbol='±' prompt_symbol='±'
else else
prompt_symbol=')' prompt_symbol=')'

Loading…
Cancel
Save