From 8b9213fde74e4ca65507a57696ad7bad97d24dad Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Sun, 2 May 2021 22:12:59 +0100 Subject: [PATCH] Speed up bash profile --- roles/home-cli/files/bashrc | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/roles/home-cli/files/bashrc b/roles/home-cli/files/bashrc index 3403c0a..9c39abf 100644 --- a/roles/home-cli/files/bashrc +++ b/roles/home-cli/files/bashrc @@ -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