From 01294e53343b669edb18f51922e327d5949c5ce2 Mon Sep 17 00:00:00 2001 From: Kevin Cotugno Date: Mon, 5 Oct 2020 07:13:53 -0700 Subject: [PATCH] Add .wsl.zsh --- .wsl.zsh | 9 +++++++++ .zshrc | 2 ++ 2 files changed, 11 insertions(+) create mode 100644 .wsl.zsh 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