fix(zsh): Fix Vagrant integration under WSL

This commit is contained in:
Tanguy Herbron 2023-11-12 18:39:10 +01:00
parent 3b05bf691e
commit 62d0c1d8a1

9
.zshrc
View File

@ -61,6 +61,15 @@ export PATH="$HOME/.local/bin:$PATH"
# Go path # Go path
export PATH=$PATH:/usr/local/go/bin 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. # 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 if [ -f '/home/tanguy/Downloads/tmp/google-cloud-sdk/path.zsh.inc' ]; then . '/home/tanguy/Downloads/tmp/google-cloud-sdk/path.zsh.inc'; fi