I guess one question is, does it matter if the syntax of the text I write in 
the editor is correct?

And related, am I writing a function body or a whole function? And if the names 
don’t match?

Here’s what I am adding to the text editor:

function myfunc
echo “hello world”
end

Another observation, the command “funced myfunc” returns right away, and only 
1/2 second later does Atom’s window open. Is that a clue?

> Also: Which also brings up another question I was wondering about: if I 
> funced and funcsave a built-in function, e.g. fish_prompt, where is that 
> saved? 

Thanks!

Pito


> On Jun 28, 2016, at 5:15 PM, Glenn Jackman <[email protected]> wrote:
> 
> So, if you do `type myfunction` then `funced myfunction` then `type 
> myfunction`, you don't see your changes saved? I can't explain that.
> 
> When you `funcsave myfunction`, fish updates the file 
> $HOME/.config/fish/functions/myfunction.fish -- documentation
> * https://fishshell.com/docs/current/commands.html#funcsave 
> <https://fishshell.com/docs/current/commands.html#funcsave>
> * https://fishshell.com/docs/current/tutorial.html#tut_autoload 
> <https://fishshell.com/docs/current/tutorial.html#tut_autoload>
> 
> 
> On Tue, Jun 28, 2016 at 5:10 PM, Pito Salas <[email protected] 
> <mailto:[email protected]>> wrote:
> Hm.. What I meant was that once I exit the editor, and then access the 
> function from the same shell session it doesn’t seem to have changed. I 
> assumed that funcsave myfunction is needed only if I want to have it be 
> present in a future session. Is that true?
> 
> Which also brings up another question I was wondering about: if I funced and 
> funcsave a built-in function, e.g. fish_prompt, where is that saved? 
> 
> Thanks!
> 
> Pito
> 
> 
>> On Jun 28, 2016, at 5:06 PM, Glenn Jackman <[email protected] 
>> <mailto:[email protected]>> wrote:
>> 
>> What do you mean "doesn't stick"? Did you use `funcsave myfunction`?
>> 
>> On Tue, Jun 28, 2016 at 4:57 PM, Pito Salas <[email protected] 
>> <mailto:[email protected]>> wrote:
>> I have atom configured as my $EDITOR
>> 
>> When I funced for example fish_prompt, it correctly launches atom but the 
>> edited function doesn’t seem to stick. Any thoughts on what I might be doing 
>> incorrectly? Thanks!
>> 
>> Pito
>> ------------------------------------------------------------------------------
>> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
>> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
>> present their vision of the future. This family event has something for
>> everyone, including kids. Get more information and register today.
>> http://sdm.link/attshape <http://sdm.link/attshape>
>> _______________________________________________
>> Fish-users mailing list
>> [email protected] <mailto:[email protected]>
>> https://lists.sourceforge.net/lists/listinfo/fish-users 
>> <https://lists.sourceforge.net/lists/listinfo/fish-users>
>> 
>> 
>> 
>> -- 
>> Glenn Jackman
>> Senior Software Developer
>> Pythian - Love your data
>> 
>> [email protected] <mailto:[email protected]>
>> Tel: +1 613 565 8696 Ext. 1478
>> Mobile: +1 613 808 4984
>> www.pythian.com <http://www.pythian.com/>
>> --
>> 
>> 
>> 
>> 
>> 
> 
> 
> 
> 
> -- 
> Glenn Jackman
> Senior Software Developer
> Pythian - Love your data
> 
> [email protected] <mailto:[email protected]>
> Tel: +1 613 565 8696 Ext. 1478
> Mobile: +1 613 808 4984
> www.pythian.com <http://www.pythian.com/>
> --
> 
> 
> 
> 
> 

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to