2016-08-22 12:04:24 +02:00
|
|
|
#/bin/bash
|
|
|
|
|
|
|
|
DIRNAME=`dirname $0`
|
|
|
|
|
|
|
|
# make-link source target
|
2016-11-22 14:09:16 +01:00
|
|
|
make_link() {
|
2016-10-15 12:30:58 +02:00
|
|
|
|
2016-08-22 12:04:24 +02:00
|
|
|
rm -rf $HOME/$2 && ln -s $PWD/$DIRNAME/$1 $HOME/$2
|
2016-10-15 12:30:58 +02:00
|
|
|
echo `realpath $PWD/$DIRNAME/$1`:'->':`realpath $HOME/$2`
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-11-22 14:09:16 +01:00
|
|
|
main() {
|
2016-10-15 12:30:58 +02:00
|
|
|
|
|
|
|
make_link zshrc .zshrc
|
|
|
|
make_link vimrc .vimrc
|
|
|
|
make_link ycm_extra_conf.py .vim/ycm_extra_conf.py
|
|
|
|
make_link awesome .config/awesome
|
|
|
|
|
2016-08-22 12:04:24 +02:00
|
|
|
}
|
|
|
|
|
2016-10-15 12:30:58 +02:00
|
|
|
main | column -t -s ':'
|