fixed git-repl conditional

This commit is contained in:
TJ Holowaychuk 2012-03-27 08:01:59 -07:00
parent 32f836bfd1
commit d79a310ed1

View file

@ -5,8 +5,7 @@ while true; do
cur=`git symbolic-ref HEAD 2> /dev/null | cut -d/ -f3-`
# Prompt
if [ $cur ]
then
if test -n "$cur"; then
prompt="git ($cur)> "
else
prompt="git> "