Add some support for WSL

This commit is contained in:
Arti Zirk 2021-06-02 16:41:10 +03:00
parent c77d264389
commit faed6407e3
1 changed files with 6 additions and 0 deletions

6
.zshrc
View File

@ -230,3 +230,9 @@ export JOBS=8
function vless {
/usr/share/nvim/runtime/macros/less.sh $@
}
# If running under windows with pageagent then use it
# https://github.com/benpye/wsl-ssh-pageant
if [[ -e /mnt/c/wsl-ssh-pageant/ssh-agent.sock ]]; then
export SSH_AUTH_SOCK=/mnt/c/wsl-ssh-pageant/ssh-agent.sock
fi