This is my fish prompt, hope it helps.

function fish_prompt
printf '%...@%s%s[%s]%s$ ' "$CURRENT_VIRTUALENV" (whoami) (hostname|cut -d . -f 1) (set_color $fish_color_cwd) (pwd) (set_color normal)




Christopher Nilsson wrote:
Hi all,

I think I'm missing something obvious.

I'm trying to add a fish_prompt function that adds to the existing prompt. I can clobber the old one easily enough, but am having trouble building on it.

The aim is to convert a bash script, which is simply setting PS1="(new prompt stuff) $PS1". Is there a fishy equivalent?

Thanks,
Chris.





------------------------------------------------------------------------

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
------------------------------------------------------------------------

_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users
------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to