acutally i am trying to create my own git prompt for fish

the prompt will be:

-branchname* $

branchname is prefixed with "-" if it is behind remote-branch,
or prefixed with "+" if it is ahead of remote-branch
and no prefix if it is up-to-date with remote-branch

branchname is suffixed with "*" if working directory is dirty, otherwise no
suffix will be there

thanks
santhosh




On Thu, Nov 13, 2014 at 5:16 AM, Santhosh T <santhosh.tek...@gmail.com>
wrote:

> mine is 2.1.1
>
> i tried same in bash. and bash also does not print anything
>
> thanks
> santhosh
>
> On Thu, Nov 13, 2014 at 5:13 AM, Diego Zamboni <di...@zzamboni.org> wrote:
>
>> Hi Santhosh,
>>
>> It works fine for me:
>>
>> ➜ ~ echo $FISH_VERSION
>> 2.1.1-1075-g701a37f
>> ➜ ~ echo -
>> -
>>
>> —Diego
>>
>>
>> On Nov 12, 2014, at 5:39 PM, Santhosh T <santhosh.tek...@gmail.com>
>> wrote:
>>
>> the command:
>>
>> echo -
>>
>> prints nothing
>>
>> i tried following also:
>>
>> echo "-"
>> echo '-'
>>
>> but following works:
>>
>> echo -e "\x2D"
>>
>> what is so special about symbol "-"
>>
>> the documentation also doesn't say anything special case for minus symbol
>>
>> thanks
>> santhosh
>>
>> ------------------------------------------------------------------------------
>> Comprehensive Server Monitoring with Site24x7.
>> Monitor 10 servers for $9/Month.
>> Get alerted through email, SMS, voice calls or mobile push notifications.
>> Take corrective actions from your mobile device.
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk_______________________________________________
>> Fish-users mailing list
>> Fish-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/fish-users
>>
>>
>>
>
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to