Speed up bash profile

This commit is contained in:
Anthony Rose 2021-05-02 22:12:59 +01:00
parent b435996722
commit 8b9213fde7

View file

@ -1,19 +1,23 @@
#!/bin/bash
export ACP_BASHRC=1
if [ -f /etc/bashrc ]
then
. /etc/bashrc
fi
if [ -f /usr/share/bash-completion/bash_completion ]
then
true
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]
then
true
. /etc/bash_completion
fi
if [ -f /usr/share/bash-completion/completions/quilt ]
then
true
. /usr/share/bash-completion/completions/quilt
complete -F _quilt_completion -o filenames dquilt
fi
_acp_add_path () {
if ! [[ "$PATH" =~ "$1:" ]] && test -d "$1"
then
@ -94,12 +98,6 @@ alias wgr=wordgrinder
alias ytmp3="youtube-dl -q -x --audio-format=mp3"
alias zlu="zypper list-updates"
if [ -f /usr/share/bash-completion/completions/quilt ]
then
. /usr/share/bash-completion/completions/quilt
complete -F _quilt_completion -o filenames dquilt
fi
# Alias vi to vim if it is installed.
if [ -x /usr/bin/vim ]
then