add shopt checks

This commit is contained in:
James Dixon 2022-05-17 20:58:50 -04:00
parent f2c52d37b0
commit 6517bfab3e

View File

@ -16,9 +16,12 @@ HISTCONTROL="ignoreboth:erasedups"
HISTTIMEFORMAT="%F %T "
# shell options
shopt -s checkhash checkjobs checkwinsize
shopt -s dirspell extglob globstar
shopt -s cmdhist histappend
if ! shopt -q checkhash 2> /dev/null; then shopt -s checkhash fi
if ! shopt -q checkwinsize 2> /dev/null; then shopt -s checkwinsize; fi
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
export EDITOR="/usr/bin/vim"