Skip to content

fish_greeting new line char behaviour #1312

Closed
xnaveira opened this Issue Feb 24, 2014 · 5 comments

3 participants

@xnaveira

I wanted to have fortune quotes (this is the quotes generated by the fortune command) at login so I edited my ~/.config/config.fish file with the folowing line:

set fish_greeting (fortune)

But the multiline quotes are showing all in the same line

@zanchey
The user-friendly shell member
zanchey commented Feb 24, 2014

You are getting bitten by #159. I can't work out what the best way to work around it is for you.

@xnaveira

At least I know what's going on, thank you.

@siteshwar
The user-friendly shell member

Well at least this should work in your case :

function fish_greeting
        fortune
end
@zanchey
The user-friendly shell member
zanchey commented Mar 7, 2014

@xnaveira, can you use the function approach as suggested by @siteshwar?

@siteshwar siteshwar added the question label Mar 16, 2014
@siteshwar
The user-friendly shell member

I was able to get correct newline behavior on my system with the fix I suggested. Closing this issue.

@siteshwar siteshwar closed this Mar 16, 2014
@siteshwar siteshwar was assigned by zanchey Mar 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.