24 lines
396 B
Bash
Executable File
24 lines
396 B
Bash
Executable File
#/bin/bash
|
|
|
|
DIRNAME=`dirname $0`
|
|
|
|
# make-link source target
|
|
function make_link {
|
|
|
|
rm -rf $HOME/$2 && ln -s $PWD/$DIRNAME/$1 $HOME/$2
|
|
echo `realpath $PWD/$DIRNAME/$1`:'->':`realpath $HOME/$2`
|
|
|
|
}
|
|
|
|
|
|
function main {
|
|
|
|
make_link zshrc .zshrc
|
|
make_link vimrc .vimrc
|
|
make_link ycm_extra_conf.py .vim/ycm_extra_conf.py
|
|
make_link awesome .config/awesome
|
|
|
|
}
|
|
|
|
main | column -t -s ':'
|