[TxMt] Re: running command to remote computer via ssh
Allan Odgaard
throw-away-1 at macromates.com
Wed Aug 16 20:35:03 UTC 2006
On 16/8/2006, at 22:24, Charles Stuart wrote:
> Next question: Is there a TM variable for the current open file? So,
> just like TM_FILEPATH, but with just the file name?
There is TM_FILENAME.
> [...] I'm not sure how one would go about removing part of the
> TM_FILEPATH.
Should a similar situation arise:
Using a shell command to do it:
"$(basename "$TM_FILEPATH")"
Using bash variable substitution:
"${TM_FILEPATH##*/}"
More information about the textmate
mailing list