tangled
alpha
login
or
join now
matthew-hre.com
/
flake
0
fork
atom
My NixOS configuration (mirror)
0
fork
atom
overview
issues
pulls
pipelines
fix: pure prompt no longer showing 'impure'
matthew-hre.com
6 months ago
242e83e8
4f51f0c8
+15
-3
1 changed file
expand all
collapse all
unified
split
home
shell
fish.nix
+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
8
-
set --universal pure_symbol_nixdevshell_symbol ""
8
8
+
9
9
+
function _pure_prompt_nixdevshell \
10
10
+
--description "Indicate if nix develop shell is activated (icon only)"
11
11
+
12
12
+
if set --query pure_enable_nixdevshell;
13
13
+
and test "$pure_enable_nixdevshell" = true;
14
14
+
and test -n "$IN_NIX_SHELL"
15
15
+
16
16
+
set --local prefix (_pure_set_color $pure_color_nixdevshell_prefix)$pure_symbol_nixdevshell_prefix
17
17
+
set --local symbol (_pure_set_color $pure_color_nixdevshell_status)
18
18
+
19
19
+
echo "$prefix$symbol"
20
20
+
end
21
21
+
end
22
22
+
9
23
zoxide init fish | source
10
24
'';
11
25
shellAliases = {
···
16
30
lg = "lazygit";
17
31
".." = "cd ..";
18
32
":q" = "exit";
19
19
-
weather = "curl -s v2.wttr.in";
20
33
copy = "xclip -selection clipboard";
21
21
-
man = "tldr";
22
34
fzf = "fzf --preview 'bat --color=always --style=numbers --line-range=:500 {}'";
23
35
};
24
36
plugins = [