On 2012-9-20 10:32 , Jeremy Lavergne wrote:
>> There are plenty of ways to get around this in macports, but I think a port 
>> prefix command would make things simpler and should be easy to implement.
>>
>> Thoughts?
> 
> Couldn't you just ".." off of the results from `which`?
> 
> if [ -f  `which port`/../../etc/bash_completion]; then
>   .  `which port`/../../etc/bash_completion
> fi

Indeed. And furthermore, if you can run port, you already have the
prefix somewhere in your shell init files since it's being used in the
definition of PATH. So you could just make it a variable and use it twice.

- Josh
_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to