On Mon, Oct 5, 2009 at 1:15 PM, Ken Kinder <[email protected]> wrote:
> On Thu, Sep 17, 2009 at 2:20 PM, Isaac Dupree
> <[email protected]> wrote:
>>
>> Look, here is how it works in fish:
>>
>> ..> set foo ~/hi
>> ..> echo $foo
>> /home/me/hi
>> ..> set foo "~/hi"
>> ..> echo $foo
>> ~/hi
>>
>> Perhaps you were confused by quoting?
>
> Ah, I this was the command that was bugging me:
>
> set -x PYTHONPATH (pwd)
> echo $PYHONPATH
>   -> ~/whatnot
>
> The problem is that pwd seems to return "~" in the value. However, if you
> explicitly call /bin/pwd, it returns a proper path. Is fish using an
> internal pwd?

> type pwd
pwd is a function with definition
function pwd --description 'Print working directory'
        echo $PWD | sed -e "s|^$HOME|~|"

end

So you can put this command inside
~/.config/fish/functions/config_interactive.fish :

functions --erase pwd

Or, redefine the function pwd, by creating and editing the file
~/.config/fish/functions/pwd.fish .

Cheers,
Philip

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to