On 10/3/06, James Hughes <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm a new fish user. My subscription to this mailing list is stuck in
> a queue somewhere, so if you could cc me when replying I'd appreciate
> it.

The subscription should be automatic, I suspect the actual cause is
that there seems to be some trouble with gmail and sourceforge. I was
unable to send any messages to the mailing list in the last few days.
Anyway, I added you to the whitelist, so future messages will not need
moderation to make it to the list, in case the trouble persists.

>
> I'm trying to add functions using the method outlined here:
>
> http://www.mail-archive.com/[email protected]/msg00805.html
>
> I can put functions in .fish.d/functions using the 'functions'
> command, but they only work in the shell that issued the command; they
> don't work in "all running
> fish instances". Further, they don't work when starting a new fish
> instance. Appending the function to ~/.fish does seem to work
> immediately however.
>
> Just wondering how to get the .fish.d/functions method to work; it
> seems a little cleaner.

It should work exactly as you describe, and it does on my system:

fish> function ggg; echo hello; end
fish> functions ggg
function ggg
        echo hello;
end

fish> functions ggg > ~/.fish.d/functions/ggg.fish


In shell number 2:

fish>ggg
hello


Some possible problems:

* Did you forget the '.fish' suffix for the file?
* Check that ~/.fish.d/functions is one of the elements of the
$fish_function_path variable (It is by default)
* Try sourcing the file you created in another shell and verify that
you get the function then. (e.g. for the command 'some_command', use
'. ~/.fish.d/functions/some_command.fish; some_command'.



>
> thanks,
>
> James
>

Hope this helps

-- 
Axel

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to