- commit
- a32b80d
- parent
- b2fc56b
- author
- Eric Bower
- date
- 2026-01-23 15:24:37 -0500 EST
docs: completions check if cmd exists first
1 files changed,
+12,
-8
+12,
-8
1@@ -146,20 +146,24 @@ ssh remote-server zmx attach session-na<TAB>
2 # <- auto-complete suggestions appear here
3 ```
4
5-### zsh
6+### bash
7
8-Add this to your `.zshrc` file:
9+Add this to your `.bashrc` file:
10
11-```zsh
12-eval "$(zmx completions zsh)"
13+```bash
14+if command -v zmx &> /dev/null; then
15+ eval "$(zmx completions bash)"
16+fi
17 ```
18
19-### bash
20+### zsh
21
22-Add this to your `.bashrc` file:
23+Add this to your `.zshrc` file:
24
25-```bash
26-eval "$(zmx completions bash)"
27+```zsh
28+if command -v zmx &> /dev/null; then
29+ eval "$(zmx completions zsh)"
30+fi
31 ```
32
33 ### fish