Update dotfiles/.bashrc

This commit is contained in:
Brian Zalewski 2022-10-25 08:37:36 +00:00
parent c9f13c080b
commit c45abc62b9

View file

@ -69,7 +69,7 @@ HISTFILESIZE=5000
HISTFILE=~/.bash_history HISTFILE=~/.bash_history
# Bash Completion # Bash Completion
if [ "$0" = 'bash' ]; then if [ "$0" = 'bash' ] || [ "$0" = '/bin/bash' ]; then
if [ -f /usr/share/bash-completion/bash_completion ]; then if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion . /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then elif [ -f /etc/bash_completion ]; then
@ -78,7 +78,7 @@ if [ "$0" = 'bash' ]; then
fi fi
# Prompt (on bash only) # Prompt (on bash only)
if [ "$0" = 'bash' ]; then if [ "$0" = 'bash' ] || [ "$0" = '/bin/bash' ]; then
# Add new line before prompt # Add new line before prompt
PROMPT_COMMAND="PROMPT_COMMAND=echo" PROMPT_COMMAND="PROMPT_COMMAND=echo"
if [ -f /etc/os-release ]; then if [ -f /etc/os-release ]; then
@ -212,7 +212,7 @@ rgafzf() {
} }
# Bash completions # Bash completions
if [ "$0" = 'bash' ]; then if [ "$0" = 'bash' ] || [ "$0" = '/bin/bash' ]; then
### fd ### fd
[ -e /usr/local/src/fd/fd ] && source /usr/local/src/fd/autocomplete/fd.bash-completion [ -e /usr/local/src/fd/fd ] && source /usr/local/src/fd/autocomplete/fd.bash-completion