Repository navigation
Conversation
pickfire
commented
Jul 26, 2015
- Look for $TERM
- Remove unknown line
- Change email
|
This is the wrong way. Apparently fish_config funcsaves fish_prompt after sourcing sorin.fish. This means I've not been able to end up with a "%" fallback prompt, even after removing the login shell check and adding the missing "$". I've moved the check into the fish_prompt function and it works - any reason you're not just doing that? I.e: The right prompt is also not saved, but that's another issue. |
More precisely, it's #736. |
|
I just hope that it will not be re-run over and over again. I think that I had forgotten to add support for root. |
What do you mean? the
No, that's in. |
|
Are you going to change that |
|
It's your work - I was waiting for you to do it. I'd also like it better if you put the check into the function directly instead of doing that other dance. |
|
Check? |
|
Like I've written here - do that workaround for "Linux" terms in the fish_prompt function instead of defining a different version of that function. |
|
Well I have tested the following in my computer and it works, should I use that instead as it is working and I think it is better not to put the code in the test $TERM = 'linux'; and function fish_prompt; echo -n '% '; endI found out that I cannot use arrow keys in linux framebuffer, it shows up You can actually add color to code by adding ```fish. |
|
That actually shouldn't work as you are missing the "$".
Why? Have you actually gotten the fallback prompt this way?
Neat. |
|
Sorry, that is a typo error, adding So, is it okay to leave it that way? As it is simpler. |
|
Where have you updated it? I'm not seeing a new commit.
I don't believe it's simpler and I have not been able to actually get it to work - i.e. getting a fallback "%" prompt. |
|
Okay, I tested it again (with a fixed "$TERM"), and here's the issue with your approach:
What I've done now is remove the fallback completely, since the fallback displays no info whatsoever while the real prompt will look wrong but still work for the most part. This is also the only prompt with such a fallback. If you want such a fallback, there's probably a better and more consistent way to do it. |
What about that? |
|
I have no idea - it works for me (always has). Anyway, it's a different bug and has nothing to do with this prompt. |