diff --git a/.zshrc b/.zshrc index 421e118..a7c5dee 100644 --- a/.zshrc +++ b/.zshrc @@ -61,6 +61,15 @@ export PATH="$HOME/.local/bin:$PATH" # Go path export PATH=$PATH:/usr/local/go/bin +# Check if running within WSL +if test -f "/proc/sys/fs/binfmt_misc/WSLInterop" +then + # Configure Vagrant integration for WSL + export VAGRANT_WSL_ENABLE_WINDOWS_ACCESS="1" + export PATH="$PATH:/mnt/c/Program Files/Oracle/VirtualBox:/mnt/c/Windows/system32:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/" + export VAGRANT_DISABLE_VBOXSYMLINKCREATE="1" +fi + # The next line updates PATH for the Google Cloud SDK. if [ -f '/home/tanguy/Downloads/tmp/google-cloud-sdk/path.zsh.inc' ]; then . '/home/tanguy/Downloads/tmp/google-cloud-sdk/path.zsh.inc'; fi