diff --git a/install.ps1 b/install.ps1 index 69c914e..2b2769d 100644 --- a/install.ps1 +++ b/install.ps1 @@ -48,4 +48,16 @@ Set-PSReadLineOption @PSReadLineOptions '@ | Out-File -FilePath $PROFILE -Append # Reload profile -. $PROFILE \ No newline at end of file +. $PROFILE + +# Configure WSL +Get-Command wsl +if ($? -eq $True) { + $linuxWindowsConfPath = (Get-Location).Path.Replace('C:', '/mnt/c').Replace('\', '/') + $linuxHomeConfPath = "/home/$(wsl -e 'whoami')/myconf" + + bash -c "ln -s $linuxWindowsConfPath $linuxHomeConfPath" + bash -c "$linuxHomeConfPath/install.sh" +} else { + Write-Output 'WSL is not installed. Ignore...' +} \ No newline at end of file diff --git a/linux/install_scripts/ubuntu.sh b/install_scripts/ubuntu.sh similarity index 100% rename from linux/install_scripts/ubuntu.sh rename to install_scripts/ubuntu.sh diff --git a/linux/useful_scripts/cleanup_wsl_mem.sh b/useful_scripts/cleanup_wsl_mem.sh similarity index 100% rename from linux/useful_scripts/cleanup_wsl_mem.sh rename to useful_scripts/cleanup_wsl_mem.sh