2020-11-03 12:07:49 -08:00
|
|
|
#!/bin/bash
|
|
|
|
# append to the history file, don't overwrite it
|
|
|
|
shopt -s histappend
|
|
|
|
# check the window size after each command and, if necessary,
|
|
|
|
# update the values of LINES and COLUMNS.
|
|
|
|
shopt -s checkwinsize
|
|
|
|
# If set, the pattern "**" used in a pathname expansion context will
|
|
|
|
# match all files and zero or more directories and subdirectories.
|
|
|
|
#shopt -s globstar
|
2020-11-06 14:24:10 -08:00
|
|
|
# if expanding aliases in all non-interactive shell is desired then uncomment
|
|
|
|
shopt -s expand_aliases
|
2020-11-03 12:07:49 -08:00
|
|
|
# enable programmable completion features (you don't need to enable
|
|
|
|
# if it's already enabled in /etc/bash.bashrc and /etc/profile
|
|
|
|
# sources /etc/bash.bashrc).
|
|
|
|
if ! shopt -oq posix; then
|
|
|
|
if [ -f /usr/share/bash-completion/bash_completion ]; then
|
|
|
|
. /usr/share/bash-completion/bash_completion
|
|
|
|
elif [ -f /etc/bash_completion ]; then
|
|
|
|
. /etc/bash_completion
|
|
|
|
fi
|
|
|
|
fi
|