1
0
mirror of https://github.com/starship/starship.git synced 2025-07-11 20:15:20 +02:00

docs: fix example Starship implementation in bash

This commit is contained in:
Matan Kushner
2020-05-19 20:26:44 -04:00
committed by GitHub
parent bbe9a1b10a
commit 90dd4eebd6

@ -31,7 +31,7 @@ STATUS=$?
NUM_JOBS=$(jobs -p | wc -l) NUM_JOBS=$(jobs -p | wc -l)
# Set the prompt to the output of `starship prompt` # Set the prompt to the output of `starship prompt`
PS1="$(starship prompt --status=$STATUS --jobs=NUM_JOBS)" PS1="$(starship prompt --status=$STATUS --jobs=$NUM_JOBS)"
``` ```
The [Bash implementation](https://github.com/starship/starship/blob/master/src/init/starship.bash) built into Starship is slightly more complex to allow for advanced features like the [Command Duration module](https://starship.rs/config/#Command-Duration) and to ensure that Starship is compatible with pre-installed Bash configurations. The [Bash implementation](https://github.com/starship/starship/blob/master/src/init/starship.bash) built into Starship is slightly more complex to allow for advanced features like the [Command Duration module](https://starship.rs/config/#Command-Duration) and to ensure that Starship is compatible with pre-installed Bash configurations.