tangled
alpha
login
or
join now
stau.space
/
nixos
0
fork
atom
My NixOS configuration.
0
fork
atom
overview
issues
pulls
pipelines
feat: New shell utilities
Diego A. Estrada Rivera
1 year ago
cdac825d
18beb905
+8
-10
1 changed file
expand all
collapse all
unified
split
homeManagerModules
muscles
shell.nix
+8
-10
homeManagerModules/muscles/shell.nix
···
14
14
enable = true;
15
15
enableZshIntegration = true;
16
16
settings = {
17
17
-
add_newline = false;
17
17
+
add_newline = true;
18
18
format = lib.concatStrings [
19
19
-
"[ ╭── ](white)[$directory](purple)[\${custom.time}](yellow)\n"
19
19
+
"[ ╭── ](white)[$hostname](purple)$directory\n"
20
20
"[ ╰ ](white)$character"
21
21
];
22
22
-
custom = {
23
23
-
time = {
24
24
-
command = "date --iso=seconds";
25
25
-
shell = ["bash" "-c"];
26
26
-
};
27
27
-
};
22
22
+
right_format = lib.concatStrings [
23
23
+
"[$all](gray)"
24
24
+
];
28
25
29
26
# Get editor completions based on the config schema
30
27
"$schema" = "https://starship.rs/config-schema.json";
31
28
32
29
character = { # The name of the module we are configuring is 'character'
33
33
-
success_symbol = "λ[.](green)";
34
34
-
error_symbol = "λ[.](red)";
30
30
+
success_symbol = "[λ](green)";
31
31
+
error_symbol = "[λ](red)";
35
32
};
36
33
37
34
# Disable the package module, hiding it from the prompt completely
···
66
63
"config" = "nvim \"~/nixos/hm-modules/rices/\"";
67
64
"rebuild" = "doas nixos-rebuild -L --flake ~/nixos#fw13 --show-trace";
68
65
"ls" = "eza";
66
66
+
"rm" = "rm -i";
69
67
};
70
68
envExtra = ''
71
69
# XDG directories