Skip to content

Instantly share code, notes, and snippets.

@GregRos
Forked from ropnop/startTerminator.vbs
Created April 27, 2019 00:20
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save GregRos/6d4ad376cebe7ce1c9e52deaf90171d3 to your computer and use it in GitHub Desktop.
Save GregRos/6d4ad376cebe7ce1c9e52deaf90171d3 to your computer and use it in GitHub Desktop.
VBS Script to Launch Terminator through WSL
' 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