diff --git a/terminal/default.nix b/terminal/default.nix index 6b234f2..d9630be 100644 --- a/terminal/default.nix +++ b/terminal/default.nix @@ -2,13 +2,12 @@ { imports = [ - ./fish + ./fish-starship ./git ./gpg ./ncmpcpp ./neovim ./ranger - ./starship ]; environment.systemPackages = with pkgs; [ diff --git a/terminal/fish/default.nix b/terminal/fish-starship/default.nix similarity index 71% rename from terminal/fish/default.nix rename to terminal/fish-starship/default.nix index 5be585c..54dea28 100644 --- a/terminal/fish/default.nix +++ b/terminal/fish-starship/default.nix @@ -133,4 +133,77 @@ end ''; }]; + + programs.starship = { + enable = true; + + settings = { + add_newline = false; + + directory = { + style = "purple"; + read_only = " ro"; + }; + + git_branch = { + style = "yellow"; + symbol = ""; + }; + + character = { + success_symbol = "[>](red)[>](green)[>](blue)"; + error_symbol = "[>](cyan)[>](purple)[>](yellow)"; + vicmd_symbol = "[<](bold green)"; + }; + + line_break.disabled = true; + + nodejs = { + format = "with [$symbol($version )]($style)"; + symbol = "node "; + version_format = "\${major}"; + disabled = true; + }; + + git_commit.tag_symbol = " tag "; + + git_status = { + ahead = ">"; + behind = "<"; + diverged = "<>"; + renamed = "r"; + deleted = "x"; + }; + + aws.symbol = "aws "; + cobol.symbol = "cobol "; + conda.symbol = "conda "; + crystal.symbol = "cr "; + cmake.symbol = "cmake "; + dart.symbol = "dart "; + deno.symbol = "deno "; + dotnet.symbol = ".NET "; + docker_context.symbol = "docker "; + elixir.symbol = "exs "; + elm.symbol = "elm "; + golang.symbol = "go "; + hg_branch.symbol = "hg "; + java.symbol = "java "; + julia.symbol = "jl "; + kotlin.symbol = "kt "; + memory_usage.symbol = "memory "; + nim.symbol = "nim "; + nix_shell.symbol = "nix "; + ocaml.symbol = "ml "; + package.symbol = "pkg "; + perl.symbol = "pl "; + php.symbol = "php "; + purescript.symbol = "purs "; + python.symbol = "python "; + ruby.symbol = "ruby "; + rust.symbol = "rust "; + scala.symbol = "scala "; + swift.symbol = "swift "; + }; + }; } diff --git a/terminal/starship/default.nix b/terminal/starship/default.nix deleted file mode 100644 index ed4f48a..0000000 --- a/terminal/starship/default.nix +++ /dev/null @@ -1,74 +0,0 @@ -{ - programs.starship = { - enable = true; - - settings = { - add_newline = false; - - directory = { - style = "purple"; - read_only = " ro"; - }; - - git_branch = { - style = "yellow"; - symbol = ""; - }; - - character = { - success_symbol = "[>](red)[>](green)[>](blue)"; - error_symbol = "[>](cyan)[>](purple)[>](yellow)"; - vicmd_symbol = "[<](bold green)"; - }; - - line_break.disabled = true; - - nodejs = { - format = "with [$symbol($version )]($style)"; - symbol = "node "; - version_format = "\${major}"; - disabled = true; - }; - - git_commit.tag_symbol = " tag "; - - git_status = { - ahead = ">"; - behind = "<"; - diverged = "<>"; - renamed = "r"; - deleted = "x"; - }; - - aws.symbol = "aws "; - cobol.symbol = "cobol "; - conda.symbol = "conda "; - crystal.symbol = "cr "; - cmake.symbol = "cmake "; - dart.symbol = "dart "; - deno.symbol = "deno "; - dotnet.symbol = ".NET "; - docker_context.symbol = "docker "; - elixir.symbol = "exs "; - elm.symbol = "elm "; - golang.symbol = "go "; - hg_branch.symbol = "hg "; - java.symbol = "java "; - julia.symbol = "jl "; - kotlin.symbol = "kt "; - memory_usage.symbol = "memory "; - nim.symbol = "nim "; - nix_shell.symbol = "nix "; - ocaml.symbol = "ml "; - package.symbol = "pkg "; - perl.symbol = "pl "; - php.symbol = "php "; - purescript.symbol = "purs "; - python.symbol = "python "; - ruby.symbol = "ruby "; - rust.symbol = "rust "; - scala.symbol = "scala "; - swift.symbol = "swift "; - }; - }; -}