My NixOS configuration (mirror)

fix: pure prompt no longer showing 'impure'

+15 -3
+15 -3
home/shell/fish.nix
··· 5 5 set fish_greeting 6 6 set --universal pure_enable_nixdevshell true 7 7 set --universal pure_symbol_nixdevshell_prefix " " 8 - set --universal pure_symbol_nixdevshell_symbol "" 8 + 9 + function _pure_prompt_nixdevshell \ 10 + --description "Indicate if nix develop shell is activated (icon only)" 11 + 12 + if set --query pure_enable_nixdevshell; 13 + and test "$pure_enable_nixdevshell" = true; 14 + and test -n "$IN_NIX_SHELL" 15 + 16 + set --local prefix (_pure_set_color $pure_color_nixdevshell_prefix)$pure_symbol_nixdevshell_prefix 17 + set --local symbol (_pure_set_color $pure_color_nixdevshell_status) 18 + 19 + echo "$prefix$symbol" 20 + end 21 + end 22 + 9 23 zoxide init fish | source 10 24 ''; 11 25 shellAliases = { ··· 16 30 lg = "lazygit"; 17 31 ".." = "cd .."; 18 32 ":q" = "exit"; 19 - weather = "curl -s v2.wttr.in"; 20 33 copy = "xclip -selection clipboard"; 21 - man = "tldr"; 22 34 fzf = "fzf --preview 'bat --color=always --style=numbers --line-range=:500 {}'"; 23 35 }; 24 36 plugins = [