Skip to content

Commit be59b7e

Browse files
committed
prompt tweaks
1 parent b6648a6 commit be59b7e

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

modules/common/shell/starship/default.nix

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
let
44
bg = {
55
sys = "mauve";
6+
usr = "mauve";
67
dir = "sapphire";
78
git = "peach";
89
lng = "surface2";
@@ -11,6 +12,7 @@ let
1112
};
1213
fg = {
1314
sys = "base";
15+
usr = "base";
1416
dir = "base";
1517
git = "base";
1618
lng = "base";
@@ -19,6 +21,7 @@ let
1921
};
2022
style = {
2123
sys = "fg:${fg.sys} bg:${bg.sys}";
24+
usr = "fg:${fg.usr} bg:${bg.usr}";
2225
dir = "fg:${fg.dir} bg:${bg.dir}";
2326
git = "fg:${fg.git} bg:${bg.git}";
2427
lng = "fg:${fg.lng} bg:${bg.lng}";
@@ -43,11 +46,11 @@ in {
4346
# TODO: any other missing things
4447

4548
format = lib.concatStrings [
46-
"$hostname"
4749
"$os"
48-
"$username"
50+
"$hostname"
51+
# "[ 󰭕 ](${style.usr})$username" # TODO
4952
"[](fg:${bg.sys} bg:${bg.dir})"
50-
"$directory"
53+
"[ 󰉖 ](${style.dir})$directory"
5154
"[](fg:${bg.dir} bg:${bg.git})"
5255
"$git_branch"
5356
"$git_status"
@@ -63,25 +66,25 @@ in {
6366
"$line_break"
6467
"$character"
6568
];
66-
hostname = {
67-
ssh_only = true;
68-
format = "[ $ssh_symbol$hostname]($style)";
69-
style = style.sys;
70-
};
7169
os = {
7270
disabled = false;
7371
format = "[ $symbol ]($style)";
7472
style = style.sys;
7573
};
74+
hostname = {
75+
# ssh_only = false;
76+
format = "[$ssh_symbol$hostname ]($style)";
77+
style = style.sys;
78+
};
7679
username = {
77-
show_always = false;
78-
style_user = style.sys;
79-
style_root = style.sys;
80-
format = "[$user ]($style)";
80+
# show_always = true;
81+
style_user = style.usr;
82+
style_root = style.usr;
83+
format = "[($user )]($style)";
8184
};
8285
directory = {
8386
style = style.dir;
84-
format = "[ $path( $read_only) ]($style)";
87+
format = "[$path ($read_only )]($style)";
8588
truncation_length = 3;
8689
truncation_symbol = "…/";
8790
};

0 commit comments

Comments
 (0)