Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # ~/.bash/shell_options.sh configuration file -- yunga.palatino@gmail.com
- # Try `shopt -p` to see the current config, or see $BASHOPTS
- # ! marks a setting changed from defaults
- shopt -s autocd #! automatically change to dir, without cd
- shopt -u cdable_vars # 'cd here' is not the same as 'cd $here'
- shopt -s cdspell #! correct minor typing errors in cd commands
- shopt -s checkhash #! check if the command is in the hash, then perform path search
- shopt -s checkjobs #! check and list jobs before exiting interactive shells
- shopt -s checkwinsize #! check if the terminal changed size !after! each command
- shopt -s cmdhist # save multi-line commands into onliners
- shopt -u compat31 # < > [[ locales, =~ operator behaviour
- shopt -u compat32 # < > [[ locales, =~ operator behaviour
- shopt -u compat40 # < > [[ locales, =~ operator behaviour, a; b; c; interrupt
- #shopt -u completion_strip_exe # cygwin
- shopt -s dirspell #! spelling correction on directory names during word completion
- shopt -s dotglob #! find .bashrc with ls *
- shopt -u execfail # interactive shell does not exit if exec fails.
- shopt -s expand_aliases # expand aliases (to use in non-interactive mode)
- shopt -u extdebug # modify behaviour for external debuggers
- shopt -s extglob #! enable extended pattern matching (!, *, ?, @, etc)
- shopt -s extquote # expand ${} in ""
- shopt -u failglob # don't fail completion if pattern fail
- shopt -u force_fignore #! don't ignore if $FIGNORE is the only possible completion
- shopt -s globstar #! '**' match subdirs, **/ dirs only
- shopt -u gnu_errfmt # gnu error message format
- shopt -s histappend #! do not overwrite history (i dig it!)
- shopt -u histreedit # re-edit failed history substitution
- shopt -u histverify # allow to edit history substitution
- shopt -u hostcomplete #! no hostnames completion (complete function already makes this better)
- shopt -u huponexit # SIGHUP to all jobs when exiting shell
- shopt -s interactive_comments # allow comments in interactive shells (easy if you which to grep your history)
- shopt -u lithist # ??? multi-line commands saved with newlines instead of semicolon
- #shopt -u login_shell # login shell? read-only
- shopt -s mailwarn #! warn about new mail
- shopt -s nocaseglob #! globs are case insensitive for me
- shopt -s nocasematch #! case match are insentive too [[glob]]
- shopt -u no_empty_cmd_completion # show completion even if cmd line is empty
- shopt -u nullglob # pattern not match expands to null string
- shopt -s progcomp # enable programmable completion
- shopt -s promptvars # prompt vars are expanded
- #shopt -u restricted_shell # restricted shell? read-only
- shopt -u shift_verbose # print error message if shifts exceed parameters
- shopt -s sourcepath # "source xxx" is searched in $PATH
- shopt -u xpg_echo # echo don't expands backslash-escape
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement