Created
September 10, 2015 14:51
-
-
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?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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