From 83112f046f77254257fd6be79d4be9c0d9a337c8 Mon Sep 17 00:00:00 2001 From: David Chen Date: Sun, 5 Oct 2025 10:11:01 -0700 Subject: [PATCH] tmux starship command (pane label) --- .gitignore | 1 + starship-tmux.toml | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 starship-tmux.toml diff --git a/.gitignore b/.gitignore index f771e4e..8e343d3 100755 --- a/.gitignore +++ b/.gitignore @@ -88,3 +88,4 @@ agent-tracker/run/server.pid tmux/cache agent-tracker/.DS_Store agent-tracker/run +!starship-tmux.toml diff --git a/starship-tmux.toml b/starship-tmux.toml new file mode 100644 index 0000000..2330b06 --- /dev/null +++ b/starship-tmux.toml @@ -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