Created
May 4, 2012 01:38
-
-
Save mabonyi/2591127 to your computer and use it in GitHub Desktop.
/etc/bashrc set & shopt options
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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