You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
417 B
22 lines
417 B
HOME = ENV['HOME']
|
|
DEST = "#{HOME}/.vim/personal"
|
|
SRC = "ftplugin"
|
|
|
|
directory DEST
|
|
|
|
task :default => :install
|
|
|
|
desc "Hardlink snippets into the ~/.vim/personal directory"
|
|
task :install => DEST do
|
|
run "cp -avl #{SRC} #{DEST}/"
|
|
end
|
|
|
|
desc "Remove obsolete from and copy new snippets to ~/.vim/personal"
|
|
task :sync => :install do
|
|
run "rsync -ri --delete #{SRC} #{DEST}/"
|
|
end
|
|
|
|
def run(cmd)
|
|
puts cmd
|
|
system cmd
|
|
end
|