archlinux-installation/install.sh
2015-11-15 19:30:17 +01:00

43 lines
945 B
Bash
Executable File

#!/bin/bash
DIR=$(dirname $(readlink -f $0));
DIRS="/boot/syslinux /etc/lightdm /etc/X11/xorg.conf.d /etc/skel /usr/share/wallpapers"
for dir in $DIRS; do
if [ -d "$DIR$dir" ]; then
for script in $DIR$dir/*; do
echo "Loading xinit script $script"
filename=$(basename $script)
if [ -e "$dir/$filename" ]; then
echo "File exists";
rm $dir/$filename
fi
ln -s $script $dir/$filename
done
fi
done
#echo 'Creating link to local zshrc'
#ln -s ~/archlinux-installation/zshrc.local ~/.zshrc.local
#
#echo 'link vimrc'
#ln -s ~/dotfiles/vimrc ~/.vimrc
#echo 'installing vundle'
#git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
#
#echo 'linking tmux'
#ln -s ~/dotfiles/tmux.conf ~/.tmux.conf
#
#echo 'linking ssh config'
#ln -s ~/dotfiles/ssh/config ~/.ssh/config
#
#echo "linking gitignore"
#ln -s ~/dotfiles/gitignore ~/.gitignore
#
#echo "linking zshenv"
#ln -s ~/dotfiles/zshenv ~/.zshenv