fish/tide: hide "impure" when in nix shell environment
2 files changed, 7 insertions(+), 0 deletions(-)
M user/settings/fish.nix → user/settings/fish.nix
@@ -65,6 +65,9 @@ nix-output-monitor.enable = true; enableFishIntegration = true; }; + programs.fish.shellInit = '' + set fish_function_path $fish_function_path[1] ${config.xdg.configHome}/fish/functions/tide $fish_function_path[2..-1] + ''; home.activation.tide-configure = '' run ${lib.getExe config.programs.fish.package} -c ' tide configure \
A user/settings/fish/functions/tide/_tide_item_nix_shell.fish
@@ -0,0 +1,4 @@ +function _tide_item_nix_shell + set -q IN_NIX_SHELL && _tide_print_item nix_shell $tide_nix_shell_icon' ' \ + (string replace impure '' $IN_NIX_SHELL) +end