repos / zmx

session persistence for terminal processes
git clone https://github.com/neurosnap/zmx.git

commit
c01f815
parent
6cf1ce6
author
bdillahu
date
2025-12-30 12:13:07 -0500 EST
Update README.md (#36)

1 files changed,  +13, -0
M README.md
+13, -0
 1@@ -108,6 +108,19 @@ if [[ -n $ZMX_SESSION ]]; then
 2 fi
 3 ```
 4 
 5+### oh-my-posh
 6+
 7+[oh-my-posh](https://ohmyposh.dev) is a popular shell themeing and prompt engine. This code will display an icon and session name as part of the prompt if (and only if) you have zmx active:
 8+
 9+```
10+[[blocks.segments]]
11+   template = '{{ if .Env.ZMX_SESSION }} {{ .Env.ZMX_SESSION }}{{ end }}'
12+   foreground = 'p:orange'
13+   background = 'p:black'
14+   type = 'text'
15+   style = 'plain'
16+```
17+
18 ## philosophy
19 
20 The entire argument for `zmx` instead of something like `tmux` that has windows, panes, splits, etc. is that job should be handled by your os window manager. By using something like `tmux` you now have redundant functionality in your dev stack: a window manager for your os and a window manager for your terminal. Further, in order to use modern terminal features, your terminal emulator **and** `tmux` need to have support for them. This holds back the terminal enthusiast community and feature development.