diff options
-rw-r--r-- | hm/soispha/conf/starship/default.nix | 27 |
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 = { # ' ' |