File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ need to source it from either `/etc/bashrc` or `~/.bashrc` (or any
2121other file sourcing those). If you have _ only_ bash >= 4.2 installed, you can
2222do 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
7070interactive settings in ` ~/.bashrc ` . You can source ` ~/.bashrc ` in
7171` ~/.bash_profile ` in the following way:
7272
73- ``` shell
73+ ``` bash
7474# ~/.bash_profile
7575
7676if [[ -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
9191adding the following to our startup file ` ~/.bashrc ` :
9292
93- ``` shell
93+ ``` bash
9494if [[ -s $HOMEBREW_PREFIX /etc/profile.d/bash_completion.sh ]]; then
9595 . " $HOMEBREW_PREFIX /etc/profile.d/bash_completion.sh"
9696fi
You can’t perform that action at this time.
0 commit comments