scripts: create pwsh.sh
This commit is contained in:
parent
63f8e69afc
commit
0f39033c5d
3 changed files with 8 additions and 0 deletions
|
@ -28,5 +28,6 @@ A feature-barren DOS clone of `ls` that hides Windows hidden files. Relies on
|
|||
- `dos.sh`: Simple wrapper for executing Windows commands directly.
|
||||
- `elevate.sh`: Elevate WSL (`-l`) or Windows (`-w`) commands from WSL.
|
||||
- `explorer.sh`: Launch explorer from WSL.
|
||||
- `pwsh.sh`: Launch PowerShell Core.
|
||||
- `terminal.sh`: Launch Windows Terminal.
|
||||
|
||||
|
|
|
@ -5,5 +5,6 @@ install DIR="~/.bin":
|
|||
cp dos.sh {{DIR}}/dos
|
||||
cp elevate.sh {{DIR}}/elevate
|
||||
cp explorer.sh {{DIR}}/explorer
|
||||
cp pwsh.sh {{DIR}}/pwsh
|
||||
cp terminal.sh {{DIR}}/terminal
|
||||
|
||||
|
|
6
scripts/pwsh.sh
Executable file
6
scripts/pwsh.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
cd '/mnt/c/Program Files/WindowsApps/'
|
||||
target=`find Microsoft.PowerShell* -name 'pwsh.exe'`
|
||||
"$target"
|
||||
|
Loading…
Reference in a new issue