Skip to content

Instantly share code, notes, and snippets.

@mccutchen
Created January 17, 2012 20:06
Show Gist options
  • Save mccutchen/1628561 to your computer and use it in GitHub Desktop.
Save mccutchen/1628561 to your computer and use it in GitHub Desktop.
Hacky remote TextMate setup for bitly VMs
#!/bin/sh
app=$1
shift;
open -a $app $@
#!/bin/sh
cmd=$1
shift;
$cmd $@
#!/bin/sh
app=$1
shift;
open -a $app $@
#!/bin/sh
for dir in $@; do
if [ -e $dir ]; then
DIRS="$DIRS $(readlink -f $dir)"
else
ARGS="$ARGS $dir"
fi
shift;
done
remote_app "TextMate" "$DIRS"
#!/bin/sh
ssh [email protected]"~/bin/remote_app $*"
#!/bin/sh
ssh [email protected] "~/bin/remote_cmd $*"
#!/bin/sh
for dir in $@; do
if [ -e $dir ]; then
DIRS="$DIRS $(readlink -f $dir)"
else
ARGS="$ARGS $dir"
fi
shift;
done
remote_cmd /Users/mccutchen/bin/subl -n "$DIRS"
#!/bin/sh
for dir in $@; do
if [ -e $dir ]; then
DIRS="$DIRS $(readlink -f $dir)"
else
ARGS="$ARGS $dir"
fi
shift;
done
remote_app "TextMate" "$DIRS"
#!/bin/sh
# Replace with your user and host
ssh [email protected] "~/bin/remote_app $*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment