Skip to content

Instantly share code, notes, and snippets.

@cheshire137
Created September 10, 2015 14:51
Show Gist options
  • Save cheshire137/1b6faa11769bebd4f275 to your computer and use it in GitHub Desktop.
Save cheshire137/1b6faa11769bebd4f275 to your computer and use it in GitHub Desktop.
What does 'rc' stand for in all those .*rc files anyway? Why not Ronald Chase?
#!/usr/bin/env ruby
require 'fileutils'
path = File.expand_path('~/.*rc')
Dir[path].each do |file|
next unless File.file?(file)
destination = file.gsub(/rc$/, 'ronaldchase')
puts "#{file} -> #{destination}"
FileUtils.ln_s(file, destination)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment