From 0f39033c5dfb5539c87e067954aa1e95426276f6 Mon Sep 17 00:00:00 2001 From: Valerie Wolfe Date: Mon, 17 Jun 2024 09:02:28 -0400 Subject: [PATCH] scripts: create pwsh.sh --- README.md | 1 + scripts/justfile | 1 + scripts/pwsh.sh | 6 ++++++ 3 files changed, 8 insertions(+) create mode 100755 scripts/pwsh.sh 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" +