1
0
mirror of https://github.com/mintty/wsltty.git synced 2025-01-31 02:01:01 +00:00

allow WSL commands as parameters to .bat invocation scripts (#147)

This commit is contained in:
mintty 2019-02-17 13:47:51 +01:00
parent 3e3eaf6e31
commit 1533c27b36
2 changed files with 4 additions and 4 deletions

View File

@ -73,7 +73,7 @@ A Windows Appx package and certificate is available in the [wsltty.appx](https:/
WSLtty can be invoked with WSLtty can be invoked with
* installed Start Menu shortcuts (or Desktop shortcuts if copied there) * installed Start Menu shortcuts (or Desktop shortcuts if copied there)
* *.bat scripts * *.bat scripts (optionally with WSL command as parameters)
* Explorer context menu (if installed from the Start Menu `WSLtty` subfolder) * Explorer context menu (if installed from the Start Menu `WSLtty` subfolder)
Starting the mintty terminal directly from the WSLtty installation location Starting the mintty terminal directly from the WSLtty installation location

View File

@ -97,7 +97,7 @@ echo Creating %1.bat
echo @echo off> %1.bat echo @echo off> %1.bat
echo rem Start mintty terminal for WSL package %name% in current directory>> %1.bat echo rem Start mintty terminal for WSL package %name% in current directory>> %1.bat
echo %target% -i "%icon%" %minttyargs% %bridgeargs%>> %1.bat echo %target% -i "%icon%" %minttyargs% %bridgeargs% %%1 %%2 %%3 %%4 %%5 %%6 %%7 %%8 %%9>> %1.bat
/EOB /EOB
fi fi
@ -167,11 +167,11 @@ do
echoc "- icon $icon" echoc "- icon $icon"
echoc "- root $root" echoc "- root $root"
target="$installdir"'\bin\mintty.exe' target="$installdir"'\bin\mintty.exe'
bridgeargs=" " bridgeargs="" # deprecated
if $ok && $config if $ok && $config
then then
export target minttyargs bridgeargs icon export name target minttyargs bridgeargs icon
if $contextmenu if $contextmenu
then then