Skip to content

Instantly share code, notes, and snippets.


Torne Wuff tornewuff

View GitHub Profile
tornewuff / subl
Created Jan 16, 2013
Script to wrap Sublime Text 2 on Linux, handling proper background invocation and using rmate to edit remotely when not in an X session (the guess being that if there's no DISPLAY we are connected via ssh).
View subl
if [ -z "$DISPLAY" ]; then
exec rmate "$@"
for arg do
case $arg in
"-w" | "--wait") NEED_FOREGROUND=1;;
"-h" | "--help") NEED_FOREGROUND=1;;
You can’t perform that action at this time.