You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, Starship requires a nerd font to display properly. However, in the TTY / virtual console, the font choice is severely limited and one cannot use nerd fonts.
Hence, with Starship enabled, all I see is squares of varying colors. instead of the usual symbols.
Steps to reproduce
Enable Starship: programs.starship.enable = true;
Let bashIntegration be set to true (default) programs.starship.enableBashIntegration = true; (assuming that one uses bash in the TTY).
Switch to e.g. TTY2 (ctrl+alt+F2).
Provided that the Starship config is not specifically such that it avoids using special characters, one should see squares in the prompt where usually such special characters are displayed.
Proposed fix
In starship.nix, one could simply, in addition to the current $TERM != "dumb" check, add a check $TERM != "linux" (as proposed here).
There could potentially be more places in the home-manager where such a check could be useful.
However, I guess it is possible that one uses a custom Starship configuration that completely avoids nerd fonts and other uncommon Unicode characters. One might even want to go as far as using separate configs for the TTY and elsewhere.
This issue is rather easy to fix on ones own, by simply disabling e.g. bashIntegration and copying and modifying the bash initExtra, so I guess this issue might be more of a matter of opinion (although judging by the home-manager code it might be slightly trickier if you use the fish shell in the TTY). Feel free to close this issue as not planned in that case. I just thought it was worth mentioning.
Are you following the right branch?
Is there an existing issue for this?
Issue description
By default, Starship requires a nerd font to display properly. However, in the TTY / virtual console, the font choice is severely limited and one cannot use nerd fonts.
Hence, with Starship enabled, all I see is squares of varying colors. instead of the usual symbols.
Steps to reproduce
programs.starship.enable = true;
programs.starship.enableBashIntegration = true;
(assuming that one uses bash in the TTY).Proposed fix
In starship.nix, one could simply, in addition to the current
$TERM != "dumb"
check, add a check$TERM != "linux"
(as proposed here).There could potentially be more places in the home-manager where such a check could be useful.
However, I guess it is possible that one uses a custom Starship configuration that completely avoids nerd fonts and other uncommon Unicode characters. One might even want to go as far as using separate configs for the TTY and elsewhere.
This issue is rather easy to fix on ones own, by simply disabling e.g.
bashIntegration
and copying and modifying the bashinitExtra
, so I guess this issue might be more of a matter of opinion (although judging by the home-manager code it might be slightly trickier if you use the fish shell in the TTY). Feel free to close this issue as not planned in that case. I just thought it was worth mentioning.Maintainer CC
No response
System information
The text was updated successfully, but these errors were encountered: