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/329/head
Paul Gideon Dann 13 years ago
parent bafde1c982
commit f19a52415e

@ -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=')'

Loading…
Cancel
Save