bash/core/10_shell.bash
raw ยท 874 bytes
# Source global definitions.
if [ -f /etc/bashrc ]; then
# shellcheck source=/etc/bashrc
source /etc/bashrc
fi
HISTCONTROL=ignoreboth
HISTSIZE=1000
HISTFILESIZE=2000
shopt -s histappend
shopt -s checkwinsize
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
debian_chroot="$(cat /etc/debian_chroot)"
fi
if [ -f "$HOME/.bash_aliases" ]; then
# shellcheck source=/dev/null
source "$HOME/.bash_aliases"
fi
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
# shellcheck source=/usr/share/bash-completion/bash_completion
source /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
# shellcheck source=/etc/bash_completion
source /etc/bash_completion
fi
fi
__func_head() {
echo "Usage: ${FUNCNAME[1]} $*"
}
__func_help() {
echo " ${FUNCNAME[1]} $*"
}