diff --git a/README.md b/README.md index 81d971d..d821ae4 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/scripts/justfile b/scripts/justfile index 805c93b..5f687ea 100644 --- a/scripts/justfile +++ b/scripts/justfile @@ -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 diff --git a/scripts/pwsh.sh b/scripts/pwsh.sh new file mode 100755 index 0000000..2aec446 --- /dev/null +++ b/scripts/pwsh.sh @@ -0,0 +1,6 @@ +#!/usr/bin/bash + +cd '/mnt/c/Program Files/WindowsApps/' +target=`find Microsoft.PowerShell* -name 'pwsh.exe'` +"$target" +