POSIX functions... learned it the hard way
This commit is contained in:
parent
bf2925579d
commit
b8ee6c7e71
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue