mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-09-21 02:17:11 +00:00
fix(lib/shopt): turn on "extglob" by default
We thought that we already have `extglob` turned on, but it was just turned on by bash-completion that we loaded from "lib/bourne-shell". When the sytem does not have bash-completion, the extglob settings are not enabled and thus causes an issue with constructs using extglob. We already turn on many glob features in "lib/shopt", and there does not seem to be reason not to turn on "extglob". In this patch, we enable it by default.
This commit is contained in:
parent
770d6ef181
commit
08e297c631
@ -18,6 +18,9 @@ PROMPT_DIRTRIM=${PROMPT_DIRTRIM:-2}
|
||||
# E.g. typing !!<space> will replace the !! with your last command
|
||||
bind Space:magic-space
|
||||
|
||||
# Turn on extended glob patterns such as @(...), *(...), ?(...), and +(...)
|
||||
shopt -s extglob
|
||||
|
||||
# Turn on recursive globbing (enables ** to recurse all directories)
|
||||
shopt -s globstar 2> /dev/null
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user