Skip to content

Instantly share code, notes, and snippets.

@brenttaylor
Created February 20, 2015 08:06
Show Gist options
  • Save brenttaylor/fe9f0ef448c086c475c8 to your computer and use it in GitHub Desktop.
Save brenttaylor/fe9f0ef448c086c475c8 to your computer and use it in GitHub Desktop.
terminator.bat
: <<TRAMPOLINE
@echo off
"C:\Program Files\Oracle\VirtualBox\vboxmanage.exe" list runningvms>NUL | findstr /B \"LocalLinuxServer\"
IF %ERRORLEVEL% EQU 1 (
C:\Users\BTaylor\Dropbox\Apps\HStart\hstart.exe /NOCONSOLE "C:\Program Files\Oracle\VirtualBox\VBoxHeadless.exe -s LocalLinuxServer"
start "" "C:\Program Files (x86)\Xming\Xming.exe" :0 -clipboard -multiwindow
)
set PATH=C:\cygwin\bin;%PATH%
bash "%~f0" "%*" > nul 2>&1
goto :EOF
TRAMPOLINE
###################
#!/bin/bash
export DISPLAY=localhost:0
until ssh -n -q -X btaylor@localhost "terminator; killall dbus-launch; exit" > /dev/null 2>&1
do
sleep 1
done
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment