From 94d70292d0c687ebacb65d00bd516cbefa18d3ca Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Mon, 19 Aug 2024 18:12:23 +0000 Subject: [PATCH] fish: fix base16-fish causing startup issues with tmux (#503) * fish: fix base16-fish causing startup issues with tmux Closes #488 Co-authored-by: Daniel Thwaites --- modules/fish/prompt.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/fish/prompt.nix b/modules/fish/prompt.nix index dccce63..800b5de 100644 --- a/modules/fish/prompt.nix +++ b/modules/fish/prompt.nix @@ -6,5 +6,9 @@ let }; in '' source ${theme} - base16-${config.lib.stylix.colors.slug} + + # See https://github.com/tomyun/base16-fish/issues/7 for why this condition exists + if test -n "$base16_theme" && status --is-interactive && test -z "$TMUX" + base16-${config.lib.stylix.colors.slug} + end ''