Haven't you always wondered how to bring Sergio Lepore's wonderful ChristBASHTree to PowerShell?
For this to work you need:
- WSL2 running your favorite linux distribution
- A PowerShell session (even 5.1 in the default console host if you feel nostalgic)
- A cup of steaming hot mullet wine
- The following function:
function Get-ChristBashTree {
wsl -- eval 'bash <(curl -Ls https://github.com/sergiolepore/ChristBASHTree/raw/master/tree-EN.sh)'
}
- Remember to always check any remote scripts before you execute them (or just continue drinking your mulled wine)
By the way:
wsl.exe
can execute any command in your wsl and bring the output back to the shell from which you called it.❤