Created
February 20, 2015 08:06
-
-
Save brenttaylor/fe9f0ef448c086c475c8 to your computer and use it in GitHub Desktop.
terminator.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
: <<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