Update dotfiles/.bashrc
This commit is contained in:
parent
8694056410
commit
4a2dcd87ce
1 changed files with 12 additions and 12 deletions
|
@ -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
|
||||||
|
if command -v shopt > /dev/null; then
|
||||||
shopt -s globstar
|
shopt -s globstar
|
||||||
shopt -s histappend
|
shopt -s histappend
|
||||||
shopt -s checkwinsize
|
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,7 +80,7 @@ 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=
|
||||||
|
|
Loading…
Reference in a new issue