stylix/modules/fish/prompt.nix

15 lines
326 B
Nix
Raw Permalink Normal View History

2024-12-24 16:04:27 +01:00
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
''