Created
January 9, 2013 14:09
-
-
Save paulbellamy/4493369 to your computer and use it in GitHub Desktop.
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/ruby | |
current_dir = File.expand_path(File.dirname(__FILE__)) | |
files_dir = File.join(current_dir, "files") | |
files = Dir[File.join(files_dir, "*")] + Dir[File.join(files_dir, ".[^\.]*")] | |
files.each do |file| | |
command = "ln -sfF #{file} $HOME/." | |
puts command | |
`#{command}` | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment