Skip to content

Commit 236ca37

Browse files
committed
docs: shell->bash MD blocks
1 parent 53ab3d9 commit 236ca37

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Also, please bear the following coding guidelines in mind:
9999

100100
can be replaced by:
101101

102-
```shell
102+
```bash
103103
bar=${foo//bar/baz}
104104
```
105105

@@ -132,7 +132,7 @@ Also, please bear the following coding guidelines in mind:
132132
expansions will be unexpectedly performed, which becomes a vulnerability. In
133133
the latter case, checks by shellcheck and shfmt will not be performed inside
134134
`'...'`. Also, `_comp_compgen_split` is `IFS`-safe.
135-
135+
136136
Avoid using `_comp_compgen -- -G "pattern"` to generate completions. The
137137
result is not filtered by the current word `cur` due to the Bash design of
138138
`compgen`. Also, this cannot be used to generate filenames with a specified

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ need to source it from either `/etc/bashrc` or `~/.bashrc` (or any
2121
other file sourcing those). If you have _only_ bash >= 4.2 installed, you can
2222
do this by simply using:
2323

24-
```shell
24+
```bash
2525
# Use bash-completion, if available
2626
[[ $PS1 && -f /usr/share/bash-completion/bash_completion ]] && \
2727
. /usr/share/bash-completion/bash_completion
@@ -70,7 +70,7 @@ standard way is to configure `~/.bash_profile` to source `~/.bashrc` and write
7070
interactive settings in `~/.bashrc`. You can source `~/.bashrc` in
7171
`~/.bash_profile` in the following way:
7272

73-
```shell
73+
```bash
7474
# ~/.bash_profile
7575

7676
if [[ -f ~/.bashrc ]]; then
@@ -90,7 +90,7 @@ the entry point of `bash-completion` to
9090
`$HOMEBREW_PREFIX/etc/profile.d/bash_completion.sh`. We can source it by
9191
adding the following to our startup file `~/.bashrc`:
9292

93-
```shell
93+
```bash
9494
if [[ -s $HOMEBREW_PREFIX/etc/profile.d/bash_completion.sh ]]; then
9595
. "$HOMEBREW_PREFIX/etc/profile.d/bash_completion.sh"
9696
fi

0 commit comments

Comments
 (0)