logo       

Re: Relative paths in shell variable: msg#00197

editors.textmate.general

Subject: Re: Relative paths in shell variable

On 23/06/2005, at 10.33, Chris Jenkins wrote:

[...] be able to get the path of the current file relative to the project directory

Try this: ${TM_FILEPATH#$TM_PROJECT_DIRECTORY/}

The #-thing means: “minus this prefix”. There's also % for “minus this suffix”.



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise