Fixed zsh instruction in README
This commit is contained in:
parent
0520af5673
commit
1452b6db45
@ -96,11 +96,13 @@ end
|
|||||||
```
|
```
|
||||||
|
|
||||||
### `zsh`
|
### `zsh`
|
||||||
Export the `PS1` variable with the output of `prettyprompt $?` as its value.
|
Use the precmd function to set the `PROMPT` variable with the output of `prettyprompt $?` as its value.
|
||||||
User-specific: `~/.zshrc`
|
User-specific: `~/.zshrc`
|
||||||
System-wide: `/etc/zsh/zshrc`
|
System-wide: `/etc/zsh/zshrc`
|
||||||
```sh
|
```zsh
|
||||||
export PS1="$(prettyprompt $?)" # Notice the double quotes
|
precmd() {
|
||||||
|
PROMPT="$(prettyprompt $?)" # Notice the double quotes
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
### Other shells
|
### Other shells
|
||||||
|
Loading…
Reference in New Issue
Block a user