Last active
July 14, 2016 12:30
-
-
Save hferentschik/5a6874cb826e40b91c6215f18c55fad2 to your computer and use it in GitHub Desktop.
vagrant-sshfs config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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