[TxMt] "Pipe text through"

Allan Odgaard allan at macromates.com
Fri May 20 21:10:26 UTC 2005


On May 20, 2005, at 22:58, Tim Martens wrote:

>> In that case, you should be able to just use “Markdown.pl” w/o the  
>> path. Otherwise use: /usr/local/bin/Markdown.pl, i.e. without the  
>> tilde.
> Strangely neither: Markdown.pl nor "Markdown.pl" even with the  
> profile above. Any ideas why?

Which version of TM are you using?

1.1b5 or earlier requires that you setup two custom shell variables  
for bash to function properly. BASH_ENV and SHLVL, the former should  
be set to the script you wish to source (e.g. ~/.bash_profile), the  
latter just to 1 (you can search the list archives for more info).

To check the state of your variables (including PATH) then open a new  
document, type “env”, and press control-R, that dumps all the  
variables normally available to a command executed by TM. So you can  
check what PATH is really set to (and if the two variables mentioned  
are setup properly).

Starting with 1.1b6 TM should take care of all this itself, and  
(unless there's a user override) it sets BASH_ENV to an init script  
which does:

[ -f /etc/profile ] && . /etc/profile

if   [ -f ~/.bash_profile ]; then . ~/.bash_profile
elif [ -f ~/.bash_login ];   then . ~/.bash_login
elif [ -f ~/.profile ];      then . ~/.profile
fi




More information about the textmate mailing list