mirror of
				https://github.com/mintty/wsltty.git
				synced 2025-10-30 22:54:03 +00:00 
			
		
		
		
	allow WSL commands as parameters to .bat invocation scripts (#147)
This commit is contained in:
		| @@ -73,7 +73,7 @@ A Windows Appx package and certificate is available in the [wsltty.appx](https:/ | ||||
|  | ||||
| WSLtty can be invoked with | ||||
| * 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) | ||||
|  | ||||
| Starting the mintty terminal directly from the WSLtty installation location  | ||||
|   | ||||
| @@ -97,7 +97,7 @@ echo Creating %1.bat | ||||
|  | ||||
| echo @echo off> %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 | ||||
| fi | ||||
|  | ||||
| @@ -167,11 +167,11 @@ do | ||||
|   echoc "- icon $icon" | ||||
|   echoc "- root $root" | ||||
|   target="$installdir"'\bin\mintty.exe' | ||||
|   bridgeargs=" " | ||||
|   bridgeargs=""	# deprecated | ||||
|  | ||||
|   if $ok && $config | ||||
|   then | ||||
|     export target minttyargs bridgeargs icon | ||||
|     export name target minttyargs bridgeargs icon | ||||
|  | ||||
|     if $contextmenu | ||||
|     then | ||||
|   | ||||
		Reference in New Issue
	
	Block a user