stylix/modules/fish/prompt.nix
Luna Simons 3a4101c4f4
fish: remove obsolete $base16_theme check
Remove the obsolete $base16_theme check which was incorrectly taken from
[1] as $base16_theme is unused in Stylix.

[1]: https://github.com/tomyun/base16-fish/issues/7#issuecomment-963376055

Closes: https://github.com/danth/stylix/issues/538
Fixes: 94d70292d0 ("fish: fix base16-fish causing startup issues with tmux (#503)")
Link: https://github.com/danth/stylix/pull/539

Tested-by: Donovan Glover <donovan@dglover.co>
Approved-by: Donovan Glover <donovan@dglover.co>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2024-08-31 19:53:32 +02:00

14 lines
326 B
Nix

config:
let
theme = config.lib.stylix.colors {
templateRepo = config.lib.stylix.templates.base16-fish;
};
in ''
source ${theme}
# See https://github.com/tomyun/base16-fish/issues/7 for why this condition exists
if status --is-interactive && test -z "$TMUX"
base16-${config.lib.stylix.colors.slug}
end
''