mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
fixed git-repl conditional
This commit is contained in:
parent
32f836bfd1
commit
d79a310ed1
|
|
@ -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> "
|
||||
|
|
|
|||
Loading…
Reference in a new issue