POSIX functions... learned it the hard way

This commit is contained in:
Thomas FORGIONE 2016-11-22 14:09:16 +01:00
parent bf2925579d
commit b8ee6c7e71
No known key found for this signature in database
GPG Key ID: 2A210FFC062E00C3
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
DIRNAME=`dirname $0`
# make-link source target
function make_link {
make_link() {
rm -rf $HOME/$2 && ln -s $PWD/$DIRNAME/$1 $HOME/$2
echo `realpath $PWD/$DIRNAME/$1`:'->':`realpath $HOME/$2`
@ -11,7 +11,7 @@ function make_link {
}
function main {
main() {
make_link zshrc .zshrc
make_link vimrc .vimrc