public
Created

/etc/bashrc set & shopt options

  • Download Gist
gistfile1.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
# Personal Defaults (systemwide to be easier)
### sh shell options
set -o allexport # -a
set -o braceexpand # -B
set -o emacs # emacs style line editor
set +o errexit # -e
set +o errtrace # -E
set +o functrace # -T
set -o hashall # -h
set -o histexpand # -H
#set -o history # history of commands
set +o ignoreeof # no exit upon EOF
set +o keyword # -k
set -o monitor # -m
set +o noclobber # -C
set +o noexec # -n
set +o noglob # -f
#set -o nolog # ignored
set -o notify # -b
set +o nounset # -u
set +o onecmd # -t
set +o physical # -P: do not follow symlinks
set -o pipefail # exit status is last non-zero or zero if all succeed
set +o posix # POSIX compliance (bash --posix)
set +o privileged # -p: privileged, do not process ENv/SHELLOPTS, no func, effective/real UID
set +o verbose # -v
set +o vi # vi style line editor
set +o xtrace # -x
 
### bash shell options
shopt -s cdable_vars
shopt -s checkhash
shopt -s checkwinsize
shopt -u cmdhist
shopt -u dotglob
shopt -u execfail
shopt -s expand_aliases
shopt -u extdebug
shopt -s extglob
shopt -s extquote
shopt -u failglob
shopt -s force_fignore
shopt -s gnu_errfmt
shopt -s histappend
shopt -s histreedit
shopt -s histverify
shopt -s hostcomplete
shopt -s huponexit
shopt -s interactive_comments
shopt -u lithist
shopt -u mailwarn
shopt -s no_empty_cmd_completion
shopt -s nocaseglob
shopt -s nocasematch
shopt -u nullglob
shopt -s progcomp
shopt -s promptvars
shopt -s shift_verbose
shopt -s sourcepath
shopt -s xpg_echo
 
set -o history

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.