Skip to content

Instantly share code, notes, and snippets.

@manualbashing
Last active December 11, 2020 14:52
Show Gist options
  • Save manualbashing/a0eef525ae9497b8f3717150df315fa8 to your computer and use it in GitHub Desktop.
Save manualbashing/a0eef525ae9497b8f3717150df315fa8 to your computer and use it in GitHub Desktop.
Bring the ChristBashTree to PowerShell (with a little help from wsl)

Haven't you always wondered how to bring Sergio Lepore's wonderful ChristBASHTree to PowerShell?

christbashtree

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.❤

published: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment