diff --git a/.wsl.zsh b/.wsl.zsh new file mode 100644 index 0000000..72aee06 --- /dev/null +++ b/.wsl.zsh @@ -0,0 +1,9 @@ +export PATH="/mnt/c/Program Files/Oracle/VirtualBox:$PATH" +export PATH="/mnt/c/Windows/System32/OpenSSH:$PATH" +export VAGRANT_WSL_ENABLE_WINDOWS_ACCESS="1" + +alias ssh-add=ssh-add.exe +alias ssh-agent=ssh-agent.exe +alias ssh-keygen=ssh-keygen.exe +alias ssh-keyscan=ssh-keyscan.exe +alias ssh=ssh.exe \ No newline at end of file diff --git a/.zshrc b/.zshrc index da7a21e..9e09c4b 100644 --- a/.zshrc +++ b/.zshrc @@ -60,6 +60,8 @@ else export EDITOR="vi" fi +if [[ $(command -v uname) && !$(uname -r | grep -iq microsoft-standard) ]]; then source "$HOME/.wsl.zsh"; fi + if [[ -f "$HOME/work.zsh" ]]; then source "$HOME/work.zsh" fi