-
-
Save GregRos/6d4ad376cebe7ce1c9e52deaf90171d3 to your computer and use it in GitHub Desktop.
VBS Script to Launch Terminator through WSL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' terminator.vbs | |
myCd = "~" | |
If WScript.Arguments.Length > 0 Then | |
myCd = "'$(wslpath -u '" & WScript.Arguments(0) & "')'" | |
End If | |
args = "bash" & " -c ""cd " & myCd & "; DISPLAY=:0 terminator""" | |
WScript.CreateObject("Shell.Application").ShellExecute "C:\Windows\System32\wsl.exe", args, "", "open", 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment