From 80c99dc02783c8afdf5d6ea8c5f32525af1e5073 Mon Sep 17 00:00:00 2001 From: ShokiNN Date: Wed, 29 Sep 2021 21:16:09 +0200 Subject: [PATCH] Add cmd to start the vpn-kit wsl2 instance --- dotfiles/z_profile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dotfiles/z_profile b/dotfiles/z_profile index 0c5cc39..89473b0 100644 --- a/dotfiles/z_profile +++ b/dotfiles/z_profile @@ -23,3 +23,8 @@ export DOTNET_ROOT XDG_CONFIG_HOME="{{@@ env['HOME'] @@}}/.config" export XDG_CONFIG_HOME {%@@ endif @@%} + +{%@@ if profile == 'AINCRAD-wsl' or profile == 'AINCRAD' or profile == 'YOETUNHEIMR-wsl' or profile == 'yoetunheimr' @@%} +# Run VPN-Kit alpine VM to route traffic through Windows and if connected through VPNs +wsl.exe -d wsl-vpnkit service wsl-vpnkit start +{%@@ endif @@%}