-
-
Save RaviPabari/4316b378c800f0e54f92fc775b62f022 to your computer and use it in GitHub Desktop.
Script to start terminator on WSL from CMD or PowerShell
This file contains 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
' Usage: terminator[.vbs] [path to starting directory] | |
' contents enclosed in square brackets optional | |
args = "-c" & " -l " & """DISPLAY=:0 terminator""" | |
' If there's a single argument, interpret it as the starting directory | |
If WScript.Arguments.Count = 1 Then | |
dir = WScript.Arguments(0) | |
Else | |
dir = "" | |
End If | |
WScript.CreateObject("Shell.Application").ShellExecute "bash", args, dir, "open", 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment