Remove unnecessary loop when setting bash shopt
This commit is contained in:
parent
b06ab834a5
commit
5af3c5ac0d
1 changed files with 1 additions and 5 deletions
|
@ -44,11 +44,7 @@ bashrc_customize_shell_options() {
|
|||
# Prevent overwriting files by mistake with output redirection.
|
||||
set -o noclobber
|
||||
|
||||
local option
|
||||
for option in cdspell checkwinsize globstar histappend nocaseglob
|
||||
do
|
||||
shopt -s "$option" 2> /dev/null
|
||||
done
|
||||
shopt -s cdspell checkwinsize globstar histappend nocaseglob
|
||||
}
|
||||
|
||||
bashrc_customize_paths() {
|
||||
|
|
Loading…
Add table
Reference in a new issue