[meta] fix rake config sync task

pull/28/head
Alpha Chen 7 years ago
parent 20a281e0ed
commit c92136fb2f

@ -50,7 +50,7 @@ namespace :sync do
desc "Sync a config" desc "Sync a config"
task :config, [:config] do |t, args| task :config, [:config] do |t, args|
config = File.expand_path(args[:config]) config = File.expand_path(args[:config])
to = config.sub(Dir.home, '\1/.dotfiles') to = config.sub(Dir.home, '\0/.dotfiles')
mv config, to mv config, to
ln_s to, config ln_s to, config

Loading…
Cancel
Save