Added support for linking non-dotfiles.

This commit is contained in:
Jacob Buys
2011-08-21 22:22:23 +02:00
parent 6e4e60fc64
commit f1a02b8afa
2 changed files with 16 additions and 8 deletions

View File

@@ -83,7 +83,7 @@ class Homesick < Thor
check_castle_existance(name, "symlink")
inside castle_dir(name) do
files = Pathname.glob('.*').reject{|a| [".",".."].include?(a.to_s)}
files = Pathname.glob('{.*,*}').reject{|a| [".",".."].include?(a.to_s)}
files.each do |path|
absolute_path = path.expand_path