A script to maintain a set of symbolic links in the specified directories.
Given a source directory and a list of relative path names (relative to the source directory) and a destination directory, the program should generate a symbolic link for each of the path in the list at the destination directory pointing to the path of the same name at the source directory.
I want to have an easy way to work with the many plugins installed with
vim-pathogen in ~/.vim/bundle
.
But then I realized that it is useful in many other cases, like for Emacs's
plugins (in ~/.emacs.d
)!
Just put lns
in your PATH
.
After editing your ~/.lnsconfig.rb
, just run:
$ lns
to refresh the symlinks!
Start lns
with the --init
flag to create and modify from a sample
configuration file:
$ lns --init $ $EDITOR ~/.lnsconfig.rb
I haven't really tested this script extensively, so the TODO list probably goes like (in no particular order):-
- write a test suite,
- change to a better name,
- more documentation,
- implement
--dry-run
.
GNU General Public License version 3.
Copyright (c) 2011-2017 lns
authors. All Rights Reserved.
Please see the COPYING
file provided with the source distribution for full
details.
- Jeffrey Lau <github@NOSPAMjlau.tk>