mirror of
https://github.com/charmbracelet/gum
synced 2024-06-04 23:02:16 +02:00
fix: demo in readme requires bash
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
parent
98353ae4d3
commit
757e23120e
|
@ -27,9 +27,9 @@ Let's build a simple script to help you write [Conventional
|
|||
Commits](https://www.conventionalcommits.org/en/v1.0.0/#summary) for your
|
||||
dotfiles.
|
||||
|
||||
Start with a `#!/bin/sh`.
|
||||
Start with a `#!/bin/bash`.
|
||||
```bash
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
```
|
||||
|
||||
Ask for the commit type with `gum choose`:
|
||||
|
@ -70,7 +70,7 @@ gum confirm "Commit changes?" && git commit -m "$SUMMARY" -m "$DESCRIPTION"
|
|||
Putting it all together...
|
||||
|
||||
```bash
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
TYPE=$(gum choose "fix" "feat" "docs" "style" "refactor" "test" "chore" "revert")
|
||||
SCOPE=$(gum input --placeholder "scope")
|
||||
|
||||
|
|
Loading…
Reference in a new issue