commit 31b4dfe210538a2b81a127f56d3104da6e7b8cdf
parent 87c688c6b9dd74b83219cb8705d04ef6d2d3ad54
Author: Szymon Mikulicz <szymon.mikulicz@posteo.net>
Date: Fri, 27 Mar 2026 10:18:32 +0100
Starship for faster prompt
Diffstat:
2 files changed, 33 insertions(+), 12 deletions(-)
diff --git a/starship/.config/starship.toml b/starship/.config/starship.toml
@@ -0,0 +1,32 @@
+add_newline = false
+command_timeout = 200
+format = "[$directory$git_branch$git_status]($style)$character"
+
+[character]
+error_symbol = "[✗](bold cyan)"
+success_symbol = "[❯](bold cyan)"
+
+[directory]
+truncation_length = 2
+truncation_symbol = "…/"
+repo_root_style = "bold cyan"
+repo_root_format = "[$repo_root]($repo_root_style)[$path]($style)[$read_only]($read_only_style) "
+
+[git_branch]
+format = "[$branch]($style) "
+style = "italic cyan"
+
+[git_status]
+format = '[$all_status]($style)'
+style = "cyan"
+ahead = "⇡${count} "
+diverged = "⇕⇡${ahead_count}⇣${behind_count} "
+behind = "⇣${count} "
+conflicted = " "
+up_to_date = " "
+untracked = "? "
+modified = " "
+stashed = ""
+staged = ""
+renamed = ""
+deleted = ""
diff --git a/zsh/.zimrc b/zsh/.zimrc
@@ -19,18 +19,6 @@ zmodule termtitle
zmodule utility
#
-# Prompt
-#
-
-# Exposes how long the last command took to run to prompts.
-zmodule duration-info
-# Exposes git repository status information to prompts.
-zmodule git-info
-zmodule prompt-pwd
-# A heavily reduced, ASCII-only version of the Spaceship and Starship prompts.
-zmodule sorin
-
-#
# Completion
#
@@ -56,3 +44,4 @@ source ~/.zimrc.d/module-custom.zsh
zmodule-custom mise --if-command "mise" --comp "mise completion zsh" --eval "mise activate zsh"
zmodule-custom zoxide --if-command "zoxide" --eval "zoxide init zsh"
+zmodule-custom starship --if-command "starship" --eval "starship init zsh"