Skip to content

Instantly share code, notes, and snippets.

@nistath
Forked from ropnop/startTerminator.vbs
Last active February 19, 2023 22:15
Show Gist options
  • Save nistath/a9236b737b15609bc0ea6e86fe3823df to your computer and use it in GitHub Desktop.
Save nistath/a9236b737b15609bc0ea6e86fe3823df 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