diff --git a/home-manager/becky-dingleberry.nix b/home-manager/becky-dingleberry.nix index 6e838cc..c8604ef 100644 --- a/home-manager/becky-dingleberry.nix +++ b/home-manager/becky-dingleberry.nix @@ -201,49 +201,6 @@ in # enable = true; # }; - programs.starship = { - enable = true; - enableZshIntegration = true; - - settings = { - format = lib.concatStrings [ - "$username" - "$hostname" - "$directory" - "$character" - ]; - right_format = lib.concatStrings [ - "$git_branch" - "$git_commit" - "$git_state" - "$git_metrics" - "$git_status" - "($cmd_duration)" - ]; - scan_timeout = 25; - add_newline = false; - continuation_prompt = "[▸▹ ](dimmed white)"; - follow_symlinks = false; - directory = { - truncate_to_repo = false; - truncation_length = 20; - truncation_symbol = "…/"; - }; - - cmd_duration = { - min_time = 100; - show_milliseconds = true; - format = "took [$duration]($style) "; - style = "bold yellow"; - }; - - character = { - success_symbol = "✓"; - error_symbol = "⚠"; - }; - }; - }; - programs.zsh = { enable = true; diff --git a/home-manager/common.nix b/home-manager/common.nix index 30b24d2..bb30462 100644 --- a/home-manager/common.nix +++ b/home-manager/common.nix @@ -52,4 +52,47 @@ in bindkey '^[[1;3D' backward-word ''; }; + + programs.starship = { + enable = true; + enableZshIntegration = true; + + settings = { + format = lib.concatStrings [ + "$username" + "$hostname" + "$directory" + "$character" + ]; + right_format = lib.concatStrings [ + "$git_branch" + "$git_commit" + "$git_state" + "$git_metrics" + "$git_status" + "($cmd_duration)" + ]; + scan_timeout = 25; + add_newline = false; + continuation_prompt = "[▸▹ ](dimmed white)"; + follow_symlinks = false; + directory = { + truncate_to_repo = false; + truncation_length = 20; + truncation_symbol = "…/"; + }; + + cmd_duration = { + min_time = 100; + show_milliseconds = true; + format = "took [$duration]($style) "; + style = "bold yellow"; + }; + + character = { + success_symbol = "[›](bold green)"; + error_symbol = "[›](bold red)"; + }; + }; + }; } diff --git a/home-manager/lcech-mac-veracode.nix b/home-manager/lcech-mac-veracode.nix index b4e3a0b..b3fe6a7 100644 --- a/home-manager/lcech-mac-veracode.nix +++ b/home-manager/lcech-mac-veracode.nix @@ -146,48 +146,6 @@ in enableZshIntegration = true; }; - programs.starship = { - enable = true; - enableZshIntegration = true; - - settings = { - format = lib.concatStrings [ - "$username" - "$hostname" - "$directory" - "$character" - ]; - right_format = lib.concatStrings [ - "$git_branch" - "$git_commit" - "$git_state" - "$git_metrics" - "$git_status" - "($cmd_duration)" - ]; - scan_timeout = 25; - add_newline = false; - continuation_prompt = "[▸▹ ](dimmed white)"; - follow_symlinks = false; - directory = { - truncate_to_repo = false; - truncation_length = 20; - truncation_symbol = "…/"; - }; - - cmd_duration = { - min_time = 100; - show_milliseconds = true; - format = "took [$duration]($style) "; - style = "bold yellow"; - }; - - character = { - success_symbol = "✓"; - error_symbol = "⚠"; - }; - }; - }; programs.zsh = { enable = true;