Skip to content

Instantly share code, notes, and snippets.

@mabonyi
Created May 4, 2012 01:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mabonyi/2591127 to your computer and use it in GitHub Desktop.
Save mabonyi/2591127 to your computer and use it in GitHub Desktop.
/etc/bashrc set & shopt options
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment