-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TTY theme is used in flatpak terminals #38
Comments
Hello @MattSturgeon, this seems to be some kind of undefined behaviour in those untested environments. Fishline tries to detect if it is running under a tty (see https://github.com/0rax/fishline/blob/master/conf.d/fishline-init.fish#L15-L25) and load the fallback theme (the one without arrows) there as power-line glyphs are usually not available in this context. You can check if this is the case by running You should be able to force the default glyphs to be used manually by adding the following line after fishline is initialized:
Depending on how you installed it, this can be done by adding to your configuration:
If you have installed it using
Let me know if you can confirm that Hope this helps |
Looks like I mis-remembered this part. Checked on windows and it appears unaffected. At least in Windows Terminal.
The two flatpak terminals print EDIT: Perhaps run
This works... Thanks! Although the colouring is different - guessing that's a theming issue rather than an environment/fishline issue? 🤔 EDIT: looks like maybe an issue with sourcing stuff in the wrong order? Doesn't occur with my PR.
Definitely, thanks |
When there is absolutely no tty set at all (e.g. in a shell spawned by a flatpak), tty prints 'not a tty', which matches `tty | grep "tty"`. Luckily `tty` also returns `1`, so we can do a two-stage check instead: ```fish set --local out (tty) and string match --quiet --entire "tty" $out ``` This fixes 0rax#38
When there is absolutely no tty set at all (e.g. in a shell spawned by a flatpak), tty prints 'not a tty', which matches `tty | grep "tty"`. Luckily `tty` also returns `1`, so we can do a two-stage check instead. This fixes 0rax#38
When there is absolutely no tty set at all (e.g. in a shell spawned by a flatpak), tty prints 'not a tty', which matches `tty | grep "tty"`. Luckily `tty` also returns `1`, so we can do a two-stage check instead. This fixes 0rax#38
Hi, I couldn't find this documented anywhere, so I'm not sure if this is a bug in fishline, the respective terminals or simply something that could be documented better.
Most terminals look like this (gnome-terminal):
But a few look like this (BlackBox):
The gnome-builder integrated terminal is also affected:
One correlation is that the working terminals seem to be installed normally, while (so-far) the affected terminals are installed as flatpaks.
I believe I also noticed similar behaviour on windows (msys2 and wsl2), but will need to double check next time I'm on a windows machine.So perhaps there's something weird going on in flatpakand windowsenvironments?Does fishline do any checks to decide if it'll render
[ ]
instead of arrows?The text was updated successfully, but these errors were encountered: