tombell/dotfiles — pull request #1 by parkr (2012-06-17 22:02:52+00:00)
Title: `rake install` now installs symlinks with '.' in the name

Awesome work, @tombell. I'm a huge fan! (And this set of prefs got me converted to zsh from bash, at least for now.)

I was making some edits to my fork of your dotfiles and adding emacs support, and the way that your Rakefile automatically generates symlinks is my grabbing all `.symlink` files and grabbing the bit before the first period (`.`) caused my `emacs.d.symlink/` folder to not be symlinked (because `emacs.symlink` had already been created as `~/.emacs` so it was skipped). Fixed that with this simple change to how `file` is created.

An alternative method would be:

```ruby
file = File.basename(linkable).gsub(/\.symlink$/, '')
```