[TextMate] Custom Shell Variables question

Andre Posumentov andre at alpdesignworks.com
Sat Oct 16 00:18:21 UTC 2004


On 15 Oct 2004, at 19:53, Mats Persson wrote:

> *but* I would prefer to have:  [  /projectName/index.php  ]
>
> in other words remove [ /Volumes/WorkDisk/Users/mats/Sites ] from the 
> TM_FILEPATH  or alternatively create a new shell variable with this 
> info only.

This any good? :

echo -n \\; basename `dirname $TM_FILEPATH`\\`basename $TM_FILEPATH`

-- Andre





More information about the textmate mailing list