add shopt checks
This commit is contained in:
parent
f2c52d37b0
commit
6517bfab3e
@ -16,9 +16,12 @@ HISTCONTROL="ignoreboth:erasedups"
|
|||||||
HISTTIMEFORMAT="%F %T "
|
HISTTIMEFORMAT="%F %T "
|
||||||
|
|
||||||
# shell options
|
# shell options
|
||||||
shopt -s checkhash checkjobs checkwinsize
|
if ! shopt -q checkhash 2> /dev/null; then shopt -s checkhash fi
|
||||||
shopt -s dirspell extglob globstar
|
if ! shopt -q checkwinsize 2> /dev/null; then shopt -s checkwinsize; fi
|
||||||
shopt -s cmdhist histappend
|
if ! shopt -q cmdhist 2> /dev/null; then shopt -s cmdhist; fi
|
||||||
|
if ! shopt -q histappend 2> /dev/null; then shopt -s histappend; fi
|
||||||
|
if ! shopt -q extglob 2> /dev/null; then shopt -s extglob; fi
|
||||||
|
if ! shopt -q globstar 2> /dev/null; then shopt -s globstar; fi
|
||||||
|
|
||||||
# command variables
|
# command variables
|
||||||
export EDITOR="/usr/bin/vim"
|
export EDITOR="/usr/bin/vim"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user