When I type funced fish_prompt, and press the up arrow, my fish exits. If
I use the left arrow, and scroll a lot, this works.
Strangely enough, this does *not* happen if I run a new fish (i.e. $ fish)
then do the funced.
Maybe login shells can't edit the prompt?
-Dave
On Wed, Jun 13, 2012 at 12:13 AM, Elis Axelsson <[email protected]>wrote:
> On 13 June 2012 04:34, Lee <[email protected]> wrote:
> > Just found the fishfish shell, and I'm excited about using it for my OS X
> > and Linux boxes. However, I'm having trouble modifying the shell prompt
> to
> > start with a newline. I've become accustomed to having each prompt
> prefaced
> > by a blank line, in order to break up the constant visual flow of the
> > terminal window. In bash, I just start $PS1 with a \n, but damned if I
> can
> > figure out how to accomplish this in fishfish. Some searching reveals
> that
> > others have had this issue in the past, but I'm unable to find if anyone
> > worked out the solution.
> >
> > I know it seems nit-picky, but it's enough to keep me in bash unless I
> can
> > figure it out. Anyone have any advice or suggestions?
>
> If you do, funced fish_prompt to get the editor open with the
> function. And add "echo" before the printf at the end of that
> function, it will print a newline for you. And echo is builtin so it's
> fast. And you can use funcsave to save your edits :)
>
> --
> Elis "etu" Axelsson
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Fish-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fish-users
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users