Skip to content

Commit 2601cb8

Browse files
authored
fix: update starship.toml with cleaner format and proper configuration (#79)
* fix: correct starship git_status variable interpolation syntax Use ${count} instead of $count for proper variable interpolation in Starship format strings. * fix: update starship.toml with cleaner format and proper configuration - Simplified prompt format with clean username@hostname display - Added command_timeout = 30000 for better performance - Updated git_status with cleaner format string - Enabled fish_style_pwd_dir_length for directory display - Updated language symbols (🐍 for Python, 🌿 for git) - Disabled rust, nodejs, and kubernetes modules - Changed error symbol from ➜ to ✗ for better clarity
1 parent d9f17de commit 2601cb8

1 file changed

Lines changed: 46 additions & 52 deletions

File tree

starship.toml

Lines changed: 46 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,71 @@
11
# Starship prompt configuration
2-
# Install: curl -sS https://starship.rs/install.sh | sh
2+
command_timeout = 30000
33

4+
# Clean, informative format
45
format = """
5-
[┌───────────────────>](bold green)
6-
[│](bold green)$username$hostname$directory$git_branch$git_status
7-
[└─>](bold green) """
8-
9-
[directory]
10-
style = "blue bold"
11-
truncation_length = 3
12-
truncate_to_repo = true
6+
$username[@](bold green)$hostname in $directory $git_branch$git_status$python
7+
$character"""
138

149
# ===================================
15-
# USERNAME - Always show for VM clarity
10+
# USERNAME & HOSTNAME
1611
# ===================================
1712
[username]
18-
show_always = true # Show even when not SSH'd in
19-
format = "[$user]($style)" # Format: username only
20-
style_user = "bold yellow" # Yellow for regular users
21-
style_root = "bold red" # Red for root (warning!)
13+
show_always = true
14+
format = "[$user]($style)"
15+
style_user = "bold yellow"
16+
style_root = "bold red"
2217
disabled = false
2318

24-
# ===================================
25-
# HOSTNAME - Always show for VM clarity
26-
# ===================================
2719
[hostname]
28-
ssh_only = false # Show even when not SSH'd in
29-
format = "[@$hostname](bold green) " # Format: @hostname with space
30-
trim_at = "." # Remove domain suffix
20+
ssh_only = false
21+
format = "[$hostname](bold green)"
22+
trim_at = "."
3123
disabled = false
3224

25+
# ===================================
26+
# DIRECTORY
27+
# ===================================
28+
[directory]
29+
style = "blue bold"
30+
truncation_length = 3
31+
truncate_to_repo = true
32+
fish_style_pwd_dir_length = 1
33+
34+
# ===================================
35+
# GIT
36+
# ===================================
3337
[git_branch]
34-
symbol = " "
38+
symbol = "🌿 "
3539
style = "bold purple"
3640

3741
[git_status]
3842
style = "red bold"
39-
# Accessible text-based indicators (emojis preserved as comments below)
40-
conflicted = "[CONFLICT$count] "
41-
ahead = "[↑$count]"
42-
behind = "[↓$count]"
43-
diverged = "[↕↑$ahead_count↓$behind_count]"
44-
untracked = "[?$count]"
45-
stashed = "[STASH$count]"
46-
modified = "[M$count]"
47-
staged = '[+$count](green)'
48-
renamed = "[R$count]"
49-
deleted = "[-$count]"
50-
# Original emoji versions (uncomment to restore):
51-
# conflicted = "⚔️ "
52-
# ahead = "⇡${count}"
53-
# behind = "⇣${count}"
54-
# diverged = "⇕⇡${ahead_count}⇣${behind_count}"
55-
# untracked = "🤷 "
56-
# stashed = "📦"
57-
# modified = "📝"
58-
# staged = '[++\($count\)](green)'
59-
# renamed = "👅"
60-
# deleted = "🗑"
43+
format = '([\[$all_status$ahead_behind\]]($style) )'
44+
conflicted = "CONFLICT"
45+
ahead = "⇡${count}"
46+
staged = "+${count}"
47+
renamed = "R${count}"
48+
deleted = "-${count}"
6149

50+
# ===================================
51+
# PROMPT CHARACTER
52+
# ===================================
6253
[character]
6354
success_symbol = "[➜](bold green)"
64-
error_symbol = "[➜](bold red)"
65-
66-
[nodejs]
67-
disabled = true
55+
error_symbol = "[✗](bold red)"
6856

57+
# ===================================
58+
# LANGUAGES
59+
# ===================================
6960
[python]
7061
disabled = false
71-
symbol = "PY "
72-
# symbol = "🐍 "
62+
format = 'via [🐍 $version]($style) '
7363

7464
[rust]
75-
disabled = false
76-
symbol = "RS "
77-
# symbol = "🦀 "
65+
disabled = true
66+
67+
[nodejs]
68+
disabled = true
69+
70+
[kubernetes]
71+
disabled = true

0 commit comments

Comments
 (0)