2016-03-31 02:12:46 +00:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
|
2016-04-16 17:00:30 +00:00
|
|
|
cd `dirname ${BASH_SOURCE[0]}`
|
2016-04-02 14:41:54 +00:00
|
|
|
source ../.profile
|
|
|
|
|
2016-03-31 02:12:46 +00:00
|
|
|
cd $HOME
|
|
|
|
echo cd `pwd`
|
|
|
|
|
2016-03-31 18:25:48 +00:00
|
|
|
files=`ls -A $DOTFILES | awk '/^\..*/ && !/\.config$/ && !/\.git$/ && !/\.gitignore$/'`
|
2016-03-31 02:12:46 +00:00
|
|
|
homepath=`echo $DOTFILES | sed "s|$HOME/||g"`
|
|
|
|
conffiles=`ls -A "$DOTFILES/.config"`
|
|
|
|
confpath=`echo $homepath | sed "s|.config/||g"`
|
2016-03-31 17:35:15 +00:00
|
|
|
userhome=$HOME
|
2016-03-31 02:12:46 +00:00
|
|
|
|
|
|
|
for file in $files; do
|
|
|
|
ln -sfv $homepath/$file .
|
|
|
|
done
|
|
|
|
ln -sfv .profile .zprofile
|
|
|
|
|
|
|
|
mkdir -p .config && cd .config/
|
|
|
|
echo cd `pwd`
|
|
|
|
for file in $conffiles; do
|
|
|
|
ln -sfv $confpath/.config/$file .
|
|
|
|
done
|
|
|
|
|
2016-04-01 15:19:20 +00:00
|
|
|
cd $HOME
|
|
|
|
mkdir -p .local/share/ && cd .local/share
|
|
|
|
echo cd `pwd`
|
|
|
|
ln -sfv $DOTFILES/fonts .
|
|
|
|
|
2016-03-31 17:35:15 +00:00
|
|
|
sudo -s << EOF
|
|
|
|
cd ~
|
|
|
|
echo -n "cd "
|
|
|
|
pwd
|
|
|
|
|
2016-04-18 12:33:31 +00:00
|
|
|
ln -sfv $DOTFILES .config/
|
|
|
|
ln -sfv $userhome/.zshrc .
|
|
|
|
ln -sfv $userhome/.profile .
|
|
|
|
ln -sfv $userhome/.zprofile .
|
2016-03-31 17:35:15 +00:00
|
|
|
ln -sfv $userhome/.vimrc .
|
|
|
|
ln -sfv $userhome/.vim/ .
|
|
|
|
ln -sfv $userhome/.gtkrc-2.0 .
|
|
|
|
|
|
|
|
mkdir -p .config && cd .config/
|
|
|
|
echo -n "cd "
|
|
|
|
pwd
|
|
|
|
ln -sfv $userhome/.config/gtk-3.0 .
|
|
|
|
EOF
|