mirror of
https://github.com/theniceboy/.config.git
synced 2025-12-26 14:44:57 +08:00
tmux starship command (pane label)
This commit is contained in:
parent
08d3e1e8a7
commit
83112f046f
2 changed files with 37 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -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
36
starship-tmux.toml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue