Skip to content

Instantly share code, notes, and snippets.

@avit
Created November 9, 2011 08:19
Show Gist options
  • Save avit/1350820 to your computer and use it in GitHub Desktop.
Save avit/1350820 to your computer and use it in GitHub Desktop.
Is there any way to get the pwd as the symlink directory I'm working in?
puts Dir.pwd
$ pwd
/Users/andrew/.dotfiles/vim
$ ruby pwd.rb
/Users/andrew/Dropbox/dotfiles/vim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment