Remove unnecessary loop when setting bash shopt

This commit is contained in:
Fernando Schauenburg 2019-10-29 23:07:31 +01:00
parent b06ab834a5
commit 5af3c5ac0d

View file

@ -44,11 +44,7 @@ bashrc_customize_shell_options() {
# Prevent overwriting files by mistake with output redirection. # Prevent overwriting files by mistake with output redirection.
set -o noclobber set -o noclobber
local option shopt -s cdspell checkwinsize globstar histappend nocaseglob
for option in cdspell checkwinsize globstar histappend nocaseglob
do
shopt -s "$option" 2> /dev/null
done
} }
bashrc_customize_paths() { bashrc_customize_paths() {