tmux starship command (pane label)

This commit is contained in:
David Chen 2025-10-05 10:11:01 -07:00
parent 08d3e1e8a7
commit 83112f046f
2 changed files with 37 additions and 0 deletions

1
.gitignore vendored
View file

@ -88,3 +88,4 @@ agent-tracker/run/server.pid
tmux/cache
agent-tracker/.DS_Store
agent-tracker/run
!starship-tmux.toml

36
starship-tmux.toml Normal file
View file

@ -0,0 +1,36 @@
add_newline = false
scan_timeout = 30
# Pane-title friendly: dir + git (branch+status) + venv
format = "$directory$git_branch$git_status$python"
[directory]
format = " [$path]($style)"
truncate_to_repo = true
truncation_length = 2
style = "bold"
[git_branch]
format = " [$branch]($style)"
truncation_length = 24
symbol = ""
[git_status]
format = " [$all_status$ahead_behind]($style)"
conflicted = "✖"
modified = "!"
staged = "+"
untracked = "?"
renamed = "»"
deleted = "✘"
stashed = "≡"
ahead = "⇡${count}"
behind = "⇣${count}"
diverged = "⇕${ahead_count}⇣${behind_count}"
[python]
# Show only the virtualenv/conda env name if active
format = " [$virtualenv]($style)"
pyenv_version_name = false
python_binary = ["python", "python3"]
disabled = false