- commit
- 340de5d
- parent
- a061876
- author
- Josh Bainbridge
- date
- 2025-12-30 10:49:12 -0500 EST
docs: add instructions on updating the bash shell prompt (#35) There are missing instructions on updating the prompt for bash. Combine both the zsh and the bash instructions in a generic setup.
1 files changed,
+6,
-9
+6,
-9
1@@ -98,17 +98,14 @@ function fish_prompt --description 'Write out the prompt'
2 end
3 ```
4
5-### bash
6+### bash and zsh
7
8-todo.
9+Depending on the shell, place this in either `.bashrc` or `.zshrc`:
10
11-### zsh
12-
13-Place this in `.zshrc`, update current `$PROMPT/$PS1` to `BASE_PROMPT`
14-
15-```zsh
16-BASE_PROMPT=$PS1/$PROMPT
17-PROMPT="${ZMX_SESSION:+[$ZMX_SESSION]} $BASE_PROMPT"
18+```bash
19+if [[ -n $ZMX_SESSION ]]; then
20+ export PS1="[$ZMX_SESSION] ${PS1}"
21+fi
22 ```
23
24 ## philosophy