Commit 1e4e888

ida  ·  2026-02-26 20:26:01 -0500 EST
parent 954b392
Add starship shell prompt instructions (#62)

1 files changed,  +18, -0
+18, -0
......@@ -153,6 +153,24 @@ POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS+=my_zmx_session
153153 style = 'plain'
154154 ```
155155
156+### starship
157+
158+[starship](https://starship.rs) is a popular shell themeing and prompt engine. This code will display the session name as part of the prompt if (and only if) you have zmx active:
159+
160+```
161+format = """
162+${custom.zmx}\
163+...
164+"""
165+
166+...
167+
168+[custom.zmx]
169+command = 'echo "[${ZMX_SESSION}]"'
170+when = 'test "${ZMX_SESSION}" != ""'
171+style = "bold magenta"
172+```
173+
156174 ## shell completion
157175
158176 Shell auto-completion for `zmx` commands and session names can be enabled using the `completions` subcommand. Once configured, you'll get auto-complete for both local `zmx` commands and sessions: