Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@RaviPabari
Forked from nistath/terminator.vbs
Created September 22, 2021 07:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RaviPabari/4316b378c800f0e54f92fc775b62f022 to your computer and use it in GitHub Desktop.
Save RaviPabari/4316b378c800f0e54f92fc775b62f022 to your computer and use it in GitHub Desktop.
Script to start terminator on WSL from CMD or PowerShell
' 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