dotfiles/install.sh
Severin Kaderli f60c23feaa Multiple changes
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
2018-12-09 23:35:23 +01:00

62 lines
No EOL
1.3 KiB
Bash
Executable file

#!/bin/bash
#
# Author: Severin Kaderli <severin.kaderli@gmail.com>
# Usage: ./install.sh
FILES=(
".aliases"
".bash_logout"
".bash_profile"
".bashrc"
".config/compton.conf"
".config/dunst"
".config/i3"
".config/polybar"
".config/termite"
".config/streamlink"
".crontab"
".dircolors"
".gitconfig"
".hyper.js"
".vimrc"
".xinitrc"
".Xresources"
"bin"
)
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
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
# Install packages
#aurman -S --noconfirm $(cat "$DIR/packages.list")
#aurman -S --noconfirm $(cat "$DIR/packages2.list")
# Create symlinks to dotfiles
print_header "Creating symlinks"
for file in "${FILES[@]}"
do
rm -rf "$HOME/$file"
ln -fs "$DIR/$file" "$HOME/$file"
done
# Give scripts execute permissions
print_header "Give permissions"
chmod -R +x "$HOME/bin"
# TODO: Enable services
print_header "Enabling systemd services"