A little TextMate black magic
August 19, 2010
I do most of my code editing in TextMate in OSX.
However my current code environment consists of a CentOS VM running under parallels.
I have my linux home directory mounted via SMB in OSX, but I like to do a lot of poking around on the files from the shell on the VM.
So, here’s a shell script to let me open files in TextMate from the VM:
#!/bin/tcsh set f="`pwd`/$*" set f="$f:s./home/pistole./Volumes/pistole/." ssh wrath open -a /Applications/TextMate.app "$f" |