mirror of
https://github.com/charmbracelet/gum
synced 2024-06-04 23:02:16 +02:00
docs: Use #!/bin/sh
instead of #!/bin/bash
This commit is contained in:
parent
610e054fb5
commit
0927958421
|
@ -21,15 +21,15 @@ The above example is running from a single shell script ([source](./examples/dem
|
||||||
## Tutorial
|
## Tutorial
|
||||||
|
|
||||||
Gum provides highly configurable, ready-to-use utilities to help you write
|
Gum provides highly configurable, ready-to-use utilities to help you write
|
||||||
useful shell scripts and dotfiles aliases with just a few lines of bash code.
|
useful shell scripts and dotfiles aliases with just a few lines of code.
|
||||||
|
|
||||||
Let's build a simple script to help you write [Conventional
|
Let's build a simple script to help you write [Conventional
|
||||||
Commits](https://www.conventionalcommits.org/en/v1.0.0/#summary) for your
|
Commits](https://www.conventionalcommits.org/en/v1.0.0/#summary) for your
|
||||||
dotfiles.
|
dotfiles.
|
||||||
|
|
||||||
Start with a `#!/bin/bash`.
|
Start with a `#!/bin/sh`.
|
||||||
```bash
|
```bash
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
```
|
```
|
||||||
|
|
||||||
Ask for the commit type with `gum choose`:
|
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...
|
Putting it all together...
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
TYPE=$(gum choose "fix" "feat" "docs" "style" "refactor" "test" "chore" "revert")
|
TYPE=$(gum choose "fix" "feat" "docs" "style" "refactor" "test" "chore" "revert")
|
||||||
SCOPE=$(gum input --placeholder "scope")
|
SCOPE=$(gum input --placeholder "scope")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue