Add .wsl.zsh

This commit is contained in:
Kevin Cotugno 2020-10-05 07:13:53 -07:00
parent 50b0f2ba85
commit 01294e5334
2 changed files with 11 additions and 0 deletions

9
.wsl.zsh Normal file
View File

@ -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

2
.zshrc
View File

@ -60,6 +60,8 @@ else
export EDITOR="vi" export EDITOR="vi"
fi fi
if [[ $(command -v uname) && !$(uname -r | grep -iq microsoft-standard) ]]; then source "$HOME/.wsl.zsh"; fi
if [[ -f "$HOME/work.zsh" ]]; then if [[ -f "$HOME/work.zsh" ]]; then
source "$HOME/work.zsh" source "$HOME/work.zsh"
fi fi