convert starter windows terminal to bat

* note the requirement to run wsl --set-default <Distro> first
This commit is contained in:
sonicspiral 2020-09-05 12:10:35 -07:00
parent 58bcaf586f
commit 39d8a13f73
2 changed files with 2 additions and 27 deletions

View File

@ -0,0 +1,2 @@
REM first set your default distro using: wsl --set-default <Distro>
wt --title "diff.py" -d "../" ; split-pane -d "../" -V ; new-tab --title "mips_to_c.py" -d "../" ; focus-tab -t 0

View File

@ -1,27 +0,0 @@
<#
.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 <Distro>.
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