From 62d0c1d8a1c993338eca9f59026881da54f2aec6 Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Sun, 12 Nov 2023 18:39:10 +0100 Subject: [PATCH] fix(zsh): Fix Vagrant integration under WSL --- .zshrc | 9 +++++++++ 1 file changed, 9 insertions(+) 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