Skip to content

Instantly share code, notes, and snippets.

@nightsparc
Forked from nistath/terminator.vbs
Created March 29, 2019 13:51
Show Gist options
  • Save nightsparc/2305cf35e84223146ccaff93dc338b86 to your computer and use it in GitHub Desktop.
Save nightsparc/2305cf35e84223146ccaff93dc338b86 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