From c56bd0cdcf9a24dd485be14b7dcfb780e4bfe559 Mon Sep 17 00:00:00 2001 From: sonicspiral <> Date: Sat, 5 Sep 2020 11:39:03 -0700 Subject: [PATCH] add starter windows terminal --- tools/windows_terminal.ps1 | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 tools/windows_terminal.ps1 diff --git a/tools/windows_terminal.ps1 b/tools/windows_terminal.ps1 new file mode 100644 index 0000000000..599794a966 --- /dev/null +++ b/tools/windows_terminal.ps1 @@ -0,0 +1,27 @@ +<# +.SYNOPSIS +Opens and sets up a few helpful starter tabs in Windows Terminal using the default distro. + +.DESCRIPTION +You can can set your default distro using: wsl --set-default . + +To register mips_to_c.py as a global command in your bash PATH: +sudo apt update +sudo apt install python3-pip +sudo git clone https://github.com/matt-kempster/mips_to_c.git /usr/local/bin/mips_to_c + +Then add PATH="$PATH:/usr/local/bin/mips_to_c" to the end of your ~/.bashrc file. +Any editor should work to do this: +vim ~/.bashrc +joe ~/.bashrc +code ~/.bashrc +Apply the changes using: source ~/.bashrc. + +You should be able to run mips_to_c.py now. + +.LINK +https://docs.microsoft.com/en-us/windows/wsl/reference +https://github.com/matt-kempster/mips_to_c.git +#> + +wt -d "../" `; split-pane -d "../" -V --title "diff.py" `; new-tab -d "../" --title "mips_to_c.py" `; focus-tab -t 0