From a54e5422b4e20a37d4c9f1eea966699db9ed27cf Mon Sep 17 00:00:00 2001 From: Valerie Wolfe Date: Mon, 22 Jul 2024 13:37:57 -0400 Subject: [PATCH] man: updated 'mkwin' manual --- man/mkwin.1 | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/man/mkwin.1 b/man/mkwin.1 index 2bfda74..63fe31d 100644 --- a/man/mkwin.1 +++ b/man/mkwin.1 @@ -6,11 +6,9 @@ .Nd generate bash scripts for running Windows programs from WSL .Sh SYNOPSIS .Nm mkwin -.Op Fl hq -.Op Fl -empty +.Op Fl heEq .Op Fl -find Ar root .Op Fl -pc Ar flags -.Op Fl -quiet .Ar target .Op Ar --\ args .Sh DESCRIPTION @@ -20,8 +18,12 @@ utility generates bash scripts for executing Windows executables from WSL, and p .Bl -tag -width Ds .It Ar --\ args The resulting script will forward the provided arguments. -.It Fl -empty +.It Fl e , Fl -empty The resulting script will not pass arguments to the target binary. +.It Fl E , Fl -env-share +The resulting script will call the +.Xr env-share 1 +utility. .It Fl -find Ar root The resulting script will locate the target binary in the given directory using .Xr find 1 . @@ -53,7 +55,12 @@ Windows Terminal's executable moves when updated. To generate a script to launch .Pp .Dl $ mkwin --empty --find='/mnt/c/Program Files/WindowsApps/Microsoft.WindowsTerminal*' WindowsTerminal.exe > terminal.sh .Pp +PowerShell doesn't inherit environment variables from WSL. To generate a script to call PowerShell with shared variables: +.Pp +.Dl $ mkwin -E '/mnt/c/Program Files/PowerShell/7/pwsh.exe' +.Pp .Sh SEE ALSO +.Xr env-share 1 , .Xr find 1 , .Xr path-convert 1 .Sh AUTHORS