Fix bash autocompletion

Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
Severin Kaderli 2018-12-24 19:34:53 +01:00
parent 6270596a5d
commit 474a3d4f30
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4
4 changed files with 11 additions and 7 deletions

View file

@ -77,12 +77,12 @@ done
print_header "Installing packages" print_header "Installing packages"
#sudo pacman -S git base-devel --noconfirm #sudo pacman -S git base-devel --noconfirm
# Install aurman # Install yay
#git clone https://aur.archlinux.org/aurman.git #git clone https://aur.archlinux.org/yay.git
#cd aurman #cd yay
#makepkg -si --noconfirm --skippgpcheck #makepkg -si --noconfirm --skippgpcheck
#cd .. #cd ..
#rm -rf aurman #rm -rf yay
# Install packages # Install packages
#aurman -S --noconfirm $(cat "${PACKAGES_DIR}/packages.list") #aurman -S --noconfirm $(cat "${PACKAGES_DIR}/packages.list")

View file

@ -23,6 +23,7 @@ NPM_PACKAGES=(
"@vue/cli" "@vue/cli"
"gatsby-cli" "gatsby-cli"
"npm-check-updates" "npm-check-updates"
"tldr"
) )
####################################### #######################################

View file

@ -33,8 +33,8 @@ if [ -f "/usr/share/git/completion/git-prompt.sh" ]; then
fi fi
# Enable autocompletion features # Enable autocompletion features
if [ -f "/etc/bash_completion" ]; then if [ -f "/usr/share/bash-completion/bash_completion" ]; then
/etc/bash_completion . /usr/share/bash-completion/bash_completion
fi fi
complete -cf sudo complete -cf sudo

View file

@ -14,6 +14,9 @@
# ./upgrade.sh # ./upgrade.sh
. utils.sh . utils.sh
print_header "Update packages" print_header "Upgrading system"
print_section "Update arch packages"
aurman -Syu --rebuild aurman -Syu --rebuild
print_section "Update npm packages"
npm update -g npm update -g