Multiple changes

Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
Severin Kaderli 2018-12-09 23:35:23 +01:00
parent ac5cfa4350
commit f60c23feaa
10 changed files with 115 additions and 192 deletions

View file

@ -3,45 +3,51 @@
# Author: Severin Kaderli <severin.kaderli@gmail.com>
# Usage: ./install.sh
FILES=(
".gitconfig"
".vimrc"
".aliases"
".bash_logout"
".bash_profile"
".bashrc"
".aliases"
".config/compton.conf"
".config/dunst"
".config/i3"
".config/polybar"
".config/termite"
".config/streamlink"
".crontab"
".dircolors"
".gitconfig"
".hyper.js"
".vimrc"
".xinitrc"
".Xresources"
".config/i3"
".config/termite"
".config/polybar"
".config/dunst"
".config/compton.conf"
".dircolors"
".hyper.js"
"bin"
".crontab"
)
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
function print_header() {
echo -e "\e[32m########################################"
echo -e "# $1"
echo -e "########################################\e[39m"
}
# Install base-devel for building aur packages
echo -e "- Installing packages"
sudo pacman -S git base-devel --noconfirm
print_header "Installing packages"
#sudo pacman -S git base-devel --noconfirm
# Install aurman
git clone https://aur.archlinux.org/aurman.git
cd aurman
makepkg -si --noconfirm --skippgpcheck
cd ..
rm -rf aurman
#git clone https://aur.archlinux.org/aurman.git
#cd aurman
#makepkg -si --noconfirm --skippgpcheck
#cd ..
#rm -rf aurman
# Install packages - "yaourt -Qqe > packages.list"
#yaourt -S --noconfirm $(cat "$DIR/yaourt/packages.list")
# Install aur packages - "yaourt -Qqm > packages.aur.list"
#yaourt -S --noconfirm $(cat "$DIR/yaourt/packages.aur.list")
# Install packages
#aurman -S --noconfirm $(cat "$DIR/packages.list")
#aurman -S --noconfirm $(cat "$DIR/packages2.list")
# Create symlinks to dotfiles
echo -e "- Creating symlinks"
print_header "Creating symlinks"
for file in "${FILES[@]}"
do
rm -rf "$HOME/$file"
@ -49,5 +55,8 @@ do
done
# Give scripts execute permissions
echo -e "- Give permissions"
chmod -R +x "$HOME/bin"
print_header "Give permissions"
chmod -R +x "$HOME/bin"
# TODO: Enable services
print_header "Enabling systemd services"