Get HOME directory Apr 13th, 2013 1 2 3 4 5 require 'etc' login = Etc.getlogin config_file = File.join(Dir.home(user), ".zshrc")