summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralex <[email protected]>2026-10-29 22:08:15 +0100
committeralex <[email protected]>2026-10-29 22:08:15 +0100
commit4c78ba81cd097d2fa46d16528b50490b50996198 (patch)
tree8d393c323c59027b5485e344b8ee5571db11ad5a
parentc7555010f9dc577808cd646cdc47cbc62db37f28 (diff)
downloadnixos-4c78ba81cd097d2fa46d16528b50490b50996198.tar.xz
nixos-4c78ba81cd097d2fa46d16528b50490b50996198.zip
made starship prettier
-rw-r--r--home-manager/home.nix1
-rw-r--r--home-manager/modules/starship.nix3
-rw-r--r--home-manager/starship.toml54
3 files changed, 58 insertions, 0 deletions
diff --git a/home-manager/home.nix b/home-manager/home.nix
index a0ac4a6..a869ef7 100644
--- a/home-manager/home.nix
+++ b/home-manager/home.nix
@@ -13,6 +13,7 @@
./modules/matugen.nix
./modules/nemu.nix
./modules/scripts.nix
+ ./modules/starship.nix
./modules/tmux.nix
./modules/packages-basic.nix
./modules/packages-development.nix
diff --git a/home-manager/modules/starship.nix b/home-manager/modules/starship.nix
new file mode 100644
index 0000000..894635c
--- /dev/null
+++ b/home-manager/modules/starship.nix
@@ -0,0 +1,3 @@
+{ ... }: {
+ xdg.configFile."starship.toml".source = ../starship.toml;
+}
diff --git a/home-manager/starship.toml b/home-manager/starship.toml
new file mode 100644
index 0000000..3cb382f
--- /dev/null
+++ b/home-manager/starship.toml
@@ -0,0 +1,54 @@
+format = """
+[\ue0b6](blue)$username$hostname$directory$git_branch$git_status$nix_shell$line_break$character
+"""
+right_format = "$cmd_duration$time"
+
+add_newline = false
+
+[username]
+show_always = true
+style_user = "bg:blue fg:black bold"
+style_root = "bg:red fg:black bold"
+format = "[ $user ]($style)"
+
+[hostname]
+ssh_only = false
+style = "bg:blue fg:black"
+format = "[@$hostname ]($style)"
+
+[directory]
+style = "bg:cyan fg:black"
+format = "[\ue0b0](fg:blue bg:cyan)[ $path ]($style)[\ue0b4](fg:cyan)"
+truncation_length = 4
+truncation_symbol = "../"
+
+[git_branch]
+symbol = "\ue0a0"
+style = "bg:green fg:black"
+format = " [\ue0b6](fg:green)[ $symbol $branch ]($style)"
+
+[git_status]
+style = "bg:yellow fg:black bold"
+format = "[\ue0b0](fg:green bg:yellow)[ $all_status$ahead_behind ]($style)[\ue0b4](fg:yellow)"
+
+[nix_shell]
+symbol = "\uf313"
+style = "bg:bright-black fg:white"
+format = " [\ue0b6](fg:bright-black)[ $symbol $name ]($style)[\ue0b4](fg:bright-black)"
+
+[cmd_duration]
+min_time = 500
+show_milliseconds = false
+style = "bg:bright-black fg:yellow"
+format = "[\ue0b6](fg:bright-black)[ took $duration ]($style)"
+
+[time]
+disabled = false
+time_format = "%R"
+style = "bg:bright-black fg:magenta"
+format = "[ $time ]($style)[\ue0b4](fg:bright-black)"
+
+[character]
+success_symbol = "[>](bold cyan)"
+error_symbol = "[>](bold red)"
+vimcmd_symbol = "[<](bold cyan)"