Created
January 17, 2012 20:06
-
-
Save mccutchen/1628561 to your computer and use it in GitHub Desktop.
Hacky remote TextMate setup for bitly VMs
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
#!/bin/sh | |
app=$1 | |
shift; | |
open -a $app $@ |
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
#!/bin/sh | |
cmd=$1 | |
shift; | |
$cmd $@ |
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
#!/bin/sh | |
app=$1 | |
shift; | |
open -a $app $@ |
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
#!/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" |
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
#!/bin/sh | |
ssh [email protected]"~/bin/remote_app $*" |
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
#!/bin/sh | |
ssh [email protected] "~/bin/remote_cmd $*" |
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
#!/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" |
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
#!/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" |
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
#!/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