Update dotfiles/.bashrc

This commit is contained in:
Brian Zalewski 2022-09-30 13:52:29 +00:00
parent 8694056410
commit 4a2dcd87ce

View file

@ -57,9 +57,11 @@ command -v bashtop > /dev/null && alias top='bashtop'
command -v bpytop > /dev/null && alias top='bpytop' command -v bpytop > /dev/null && alias top='bpytop'
### Settings ### Settings
shopt -s globstar if command -v shopt > /dev/null; then
shopt -s histappend shopt -s globstar
shopt -s checkwinsize shopt -s histappend
shopt -s checkwinsize
fi
HISTCONTROL=ignoreboth HISTCONTROL=ignoreboth
HISTSIZE=5000 HISTSIZE=5000
@ -67,12 +69,10 @@ HISTFILESIZE=5000
HISTFILE=~/.bash_history HISTFILE=~/.bash_history
# Bash Completion # Bash Completion
if [ -f /usr/share/bash-completion/bash_completion ] if [ -f /usr/share/bash-completion/bash_completion ]; then
then . /usr/share/bash-completion/bash_completion
source /usr/share/bash-completion/bash_completion elif [ -f /etc/bash_completion ]; then
elif [ -f /etc/bash_completion ] . /etc/bash_completion
then
source /etc/bash_completion
fi fi
# Add new line before prompt # Add new line before prompt
@ -80,10 +80,10 @@ PROMPT_COMMAND="PROMPT_COMMAND=echo"
# Prompt # Prompt
if [ -f /etc/os-release ]; then if [ -f /etc/os-release ]; then
source /etc/os-release . /etc/os-release
if [ -d /Applications ] && [ -d /Library ] && [ -d /System ]; then if [ -d /Applications ] && [ -d /Library ] && [ -d /System ]; then
# macOS # macOS
OS_ICON= OS_ICON=
elif [ "$ID" == 'alpine' ]; then elif [ "$ID" == 'alpine' ]; then
OS_ICON= OS_ICON=
elif [ "$ID" == 'archlinux' ]; then elif [ "$ID" == 'archlinux' ]; then