From 474a3d4f3012d847993cdcb9ff44ce49d8e47d69 Mon Sep 17 00:00:00 2001 From: Severin Kaderli Date: Mon, 24 Dec 2018 19:34:53 +0100 Subject: [PATCH] Fix bash autocompletion Signed-off-by: Severin Kaderli --- install.sh | 8 ++++---- post-install.sh | 1 + system/.bashrc | 4 ++-- system/bin/upgrade.sh | 5 ++++- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/install.sh b/install.sh index 7f63ff7..4a22e12 100755 --- a/install.sh +++ b/install.sh @@ -77,12 +77,12 @@ done print_header "Installing packages" #sudo pacman -S git base-devel --noconfirm -# Install aurman -#git clone https://aur.archlinux.org/aurman.git -#cd aurman +# Install yay +#git clone https://aur.archlinux.org/yay.git +#cd yay #makepkg -si --noconfirm --skippgpcheck #cd .. -#rm -rf aurman +#rm -rf yay # Install packages #aurman -S --noconfirm $(cat "${PACKAGES_DIR}/packages.list") diff --git a/post-install.sh b/post-install.sh index 018fc78..bbb69c4 100755 --- a/post-install.sh +++ b/post-install.sh @@ -23,6 +23,7 @@ NPM_PACKAGES=( "@vue/cli" "gatsby-cli" "npm-check-updates" + "tldr" ) ####################################### diff --git a/system/.bashrc b/system/.bashrc index c21c4ed..3b2b0de 100644 --- a/system/.bashrc +++ b/system/.bashrc @@ -33,8 +33,8 @@ if [ -f "/usr/share/git/completion/git-prompt.sh" ]; then fi # Enable autocompletion features -if [ -f "/etc/bash_completion" ]; then - /etc/bash_completion +if [ -f "/usr/share/bash-completion/bash_completion" ]; then + . /usr/share/bash-completion/bash_completion fi complete -cf sudo diff --git a/system/bin/upgrade.sh b/system/bin/upgrade.sh index d57e26e..00757ee 100755 --- a/system/bin/upgrade.sh +++ b/system/bin/upgrade.sh @@ -14,6 +14,9 @@ # ./upgrade.sh . utils.sh -print_header "Update packages" +print_header "Upgrading system" +print_section "Update arch packages" aurman -Syu --rebuild + +print_section "Update npm packages" npm update -g \ No newline at end of file