Skip to content

Instantly share code, notes, and snippets.

@hferentschik
Last active July 14, 2016 12:30
Show Gist options
  • Save hferentschik/5a6874cb826e40b91c6215f18c55fad2 to your computer and use it in GitHub Desktop.
Save hferentschik/5a6874cb826e40b91c6215f18c55fad2 to your computer and use it in GitHub Desktop.
vagrant-sshfs config
config.vm.synced_folder '.', '/vagrant', disabled: true
if Vagrant::Util::Platform.windows?
target_path = ENV['USERPROFILE'].gsub(/\\/,'/').gsub(/[[:alpha:]]{1}:/){|s|'/' + s.downcase.sub(':', '')}
config.vm.synced_folder ENV['USERPROFILE'], target_path, type: 'sshfs', sshfs_opts_append: '-o umask=000 -o uid=1000 -o gid=1000'
else
config.vm.synced_folder ENV['HOME'], ENV['HOME'], type: 'sshfs', sshfs_opts_append: '-o umask=000 -o uid=1000 -o gid=1000'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment