aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Bossing <max@bossi.ng>2025-07-15 22:07:28 +0200
committerMax Bossing <max@bossi.ng>2025-07-15 22:07:28 +0200
commite6e45ac06a4a8326d8bb64be93a7c44fcbc68f86 (patch)
tree619c7adbb113c8fce3959b3c93d88abecea3dfcf
parent69fdda0d1d7bfc39b097ebe354edfe0b6443c1cd (diff)
starship
-rw-r--r--dots.toml4
-rw-r--r--starship/starship.toml68
2 files changed, 72 insertions, 0 deletions
diff --git a/dots.toml b/dots.toml
index 2ad166e..0b6a5ce 100644
--- a/dots.toml
+++ b/dots.toml
@@ -25,3 +25,7 @@ dest = ".config/iamb"
[[dot]]
src = "tmux/tmux.conf"
dest = ".tmux.conf"
+
+[[dot]]
+src = "starship/starship.toml"
+dest = ".config/starship.toml"
diff --git a/starship/starship.toml b/starship/starship.toml
new file mode 100644
index 0000000..14408b3
--- /dev/null
+++ b/starship/starship.toml
@@ -0,0 +1,68 @@
+#format = """
+#[╭─user───❯](bold blue) $username
+#[┣─system─❯](bold yellow) $hostname
+#[┣─project❯](bold red) $directory$git_branch$git_state$git_status$python
+#[╰─cmd────❯](bold green)
+#"""
+[username]
+style_user = "green bold"
+style_root = "red bold"
+format = "[$user]($style) "
+disabled = false
+show_always = true
+
+[hostname]
+ssh_only = false
+format = 'on [$hostname](bold purple) '
+trim_at = "."
+disabled = false
+
+# Replace the "❯" symbol in the prompt with "➜"
+[character] # The name of the module we are configuring is "character"
+success_symbol = "[✓ ➜ ](bold green)" # The "success_symbol" segment is being set to "➜" with the color "bold green"
+error_symbol = "[✗ ➜ ](bold red)"
+
+# configure directory
+[directory]
+read_only = " "
+truncation_length = 10
+truncate_to_repo = true # truncates directory to root folder if in github repo
+style = "bold blue"
+
+[cmd_duration]
+min_time = 4
+show_milliseconds = false
+disabled = false
+style = "bold yellow"
+
+[git_status]
+format = '([\[$all_status$ahead_behind\]]($style) )'
+stashed = "[${count}*](green)"
+modified = "[${count}+](yellow)"
+deleted = "[${count}-](red)"
+conflicted = "[${count}~](red)"
+ahead = "⇡${count}"
+behind = "⇣${count}"
+untracked = "[${count}?](blue)"
+staged = "[${count}+](green)"
+
+[git_state]
+style = "bold red"
+format = "[$state( $progress_current/$progress_total) ]($style)"
+rebase = "rebase"
+merge = "merge"
+revert = "revert"
+cherry_pick = "cherry"
+bisect = "bisect"
+am = "am"
+am_or_rebase = "am/rebase"
+
+[python]
+symbol = "🐍 "
+#pyenv_version_name = true
+format = 'via [${symbol}python (${version} )(\($virtualenv\) )]($style)'
+style = "bold yellow"
+pyenv_prefix = "venv "
+python_binary = ["./venv/bin/python", "python", "python3", "python2"]
+detect_extensions = ["py"]
+version_format = "v${raw}"