Skip to content

Commit 08b599c

Browse files
committed
change starship to show direnv
1 parent 8aee27f commit 08b599c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

home/starship.nix

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
format = lib.strings.concatStrings [
66
"$sudo$hostname" # usually hidden
77
"$directory$custom"
8+
"$nix_shell"
9+
"$direnv"
810
"$git_branch$git_commit$git_state$git_status"
11+
"$env_var"
912
"$cmd_duration"
1013
"$line_break"
1114
"$jobs$status$shlvl$character"
@@ -27,6 +30,17 @@
2730
read_only = "✖";
2831
};
2932

33+
direnv = {
34+
disabled = true;
35+
};
36+
37+
env_var = {
38+
disabled = false;
39+
variable = "SERIAL_NUMBER";
40+
style = "bright-black";
41+
format = "[$env_value]($style)";
42+
};
43+
3044
git_branch = {
3145
format = "[$symbol$branch(:$remote_branch)]($style)";
3246
symbol = " ";
@@ -71,6 +85,14 @@
7185
symbol = "";
7286
};
7387

88+
nix_shell = {
89+
disabled = false;
90+
impure_msg = "[󱄅](blue)";
91+
pure_msg = "[󱄅](bold white)";
92+
unknown_msg = "[󱄅](bold red)";
93+
format = "$state ";
94+
};
95+
7496
status = {
7597
disabled = false;
7698
pipestatus = true;

0 commit comments

Comments
 (0)