mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 08:52:40 +01:00
add starter windows terminal
This commit is contained in:
parent
66cc5a1ee6
commit
c56bd0cdcf
27
tools/windows_terminal.ps1
Normal file
27
tools/windows_terminal.ps1
Normal file
@ -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 <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
|
Loading…
Reference in New Issue
Block a user