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