aboutsummaryrefslogtreecommitdiffstats
path: root/hm/soispha/conf
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-12-29 20:09:52 +0100
committerSoispha <soispha@vhack.eu>2023-12-29 20:50:37 +0100
commitfc61706fd445a0a9469aa454f1ef3176f9ae4366 (patch)
treeef37f29379dbbf2580100a1431e1ac4f05f86b5b /hm/soispha/conf
parentfix(hm/conf/starship): Try to change path colour based on exit (diff)
downloadnixos-config-fc61706fd445a0a9469aa454f1ef3176f9ae4366.zip
fix(hm/conf/starship): Use different approach to directory styling
Diffstat (limited to 'hm/soispha/conf')
-rw-r--r--hm/soispha/conf/starship/default.nix27
1 files changed, 10 insertions, 17 deletions
diff --git a/hm/soispha/conf/starship/default.nix b/hm/soispha/conf/starship/default.nix
index 827c2a93..d7a5ceee 100644
--- a/hm/soispha/conf/starship/default.nix
+++ b/hm/soispha/conf/starship/default.nix
@@ -10,7 +10,7 @@
settings = {
add_newline = false;
format = lib.concatStrings [
- "\${custom.status_output}$directory\${custom.status_clear}"
+ "$directory"
"$username"
"$cmd_duration"
"$status"
@@ -38,7 +38,7 @@
};
status = {
disabled = false;
- format = "([($common_meaning \\($status\\))($signal_name \\($signal_number\\))]($style) )";
+ format = "([($common_meaning )($status)( $signal_name)]($style) )";
};
time = {
disabled = false;
@@ -69,33 +69,26 @@
am_or_rebase = "[applying/rebasing](bold yellow)";
};
git_commit = {
+ disabled = true;
tag_disabled = false;
tag_symbol = "v";
- format = "[(\\[$hash$tag\\] )]($style) ";
+ format = "[(\\[$tag\\] )]($style)";
};
directory = {
truncate_to_repo = true;
- read_only = "";
+ read_only = " 󰌾";
before_repo_root_style = "black bold dimmed";
- format =
- "[$before_root_path]($before_repo_root_style)[$repo_root]($repo_root_style)$path[$read_only]($read_only_style)";
};
cmd_duration = {
min_time = 2000; # Milliseconds
style = "bold white";
};
custom = {
- status_output = {
- format = "$output";
- command = "if test $STARSHIP_CMD_STATUS -ne 0; then echo \"\\033[31;1m\"; else echo \"\\033[34;1m\"; fi";
- shell = [ "${pkgs.dash}" ];
- };
- status_clear = {
- when = "test $STARSHIP_CMD_STATUS -ne 0";
- format = "$output";
- command = "echo \"\\033[m\"";
- shell = [ "${pkgs.dash}" ];
- };
+ # status_output = {
+ # format = "$output";
+ # command = "if test $STARSHIP_CMD_STATUS -ne 0; then echo \"bold red\"; else echo \"bold cyan\"; fi";
+ # shell = [ "${pkgs.dash}" ];
+ # };
};
battery = {
# '󰁹 '