-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser.nix.MD.v2
75 lines (75 loc) · 1.88 KB
/
user.nix.MD.v2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{ pkgs, misc, lib, ... }: {
# This file will never be modified by fleek
# configs mentioned here must be listed in ~/fleek.yml #programs array or you will get errors
programs.bash = {
enable = true;
initExtra =
"set -o noclobber"
;
};
## Below is starship config
programs.starship.enable = true;
programs.starship.settings = {
add_newline = false;
format = "$shlvl$shell$username$hostname$nix_shell$git_branch$git_commit$git_state$git_status$directory$jobs$cmd_duration$character";
shlvl = {
disabled = false;
symbol = "ﰬ";
style = "bright-red bold";
};
shell = {
disabled = false;
format = "$indicator";
fish_indicator = "";
bash_indicator = "[BASH](bright-white) ";
zsh_indicator = "[ZSH](bright-white) ";
};
username = {
style_user = "bright-white bold";
style_root = "bright-red bold";
};
hostname = {
style = "bright-green bold";
ssh_only = true;
};
nix_shell = {
symbol = "";
format = "[$symbol$name]($style) ";
style = "bright-purple bold";
};
git_branch = {
only_attached = true;
format = "[$symbol$branch]($style) ";
symbol = "שׂ";
style = "bright-yellow bold";
};
git_commit = {
only_detached = true;
format = "[ﰖ$hash]($style) ";
style = "bright-yellow bold";
};
git_state = {
style = "bright-purple bold";
};
git_status = {
style = "bright-green bold";
};
directory = {
read_only = " ";
truncation_length = 0;
};
cmd_duration = {
format = "[$duration]($style) ";
style = "bright-blue";
};
jobs = {
style = "bright-green bold";
};
character = {
success_symbol = "[\\$](bright-green bold)";
error_symbol = "[\\$](bright-red bold)";
};
};
## Above is Starship config
## Below is last line.
}