Re: [Fish-users] funced and funcsave

2017-08-24 Thread Kurtis Rader
On Thu, Aug 24, 2017 at 3:14 PM, Mark Volkmann wrote: > It turns out that if I define "rm" as an abbreviation instead of an alias, > this problem goes away. > Yep, because abbreviations only apply to commands entered at an interactive prompt. In fact, this is a good example where an abbreviation

Re: [Fish-users] funced and funcsave

2017-08-24 Thread Mark Volkmann
It turns out that if I define "rm" as an abbreviation instead of an alias, this problem goes away. On Sun, Aug 20, 2017 at 5:11 PM, Mark Volkmann wrote: > You are correct. I have this in my config.fish: > > alias rm 'rm -i' > > I definitely don't want to change that alias because it helps me to

Re: [Fish-users] funced and funcsave

2017-08-20 Thread Mark Volkmann
You are correct. I have this in my config.fish: alias rm 'rm -i' I definitely don't want to change that alias because it helps me to avoid accidentally deleting the wrong file by forcing me to think about it one more time. But of course it's annoying that funced asks me about a file that I probab

Re: [Fish-users] funced and funcsave

2017-08-20 Thread Kurtis Rader
On Sun, Aug 20, 2017 at 4:49 AM, Mark Volkmann wrote: > > A related question: > Why does funced ask this question on exit? > "remove /var/folders/jc/q4_2lrkd3pn2sz1l_s8rf31wgn/T/ > /fish.DjETfi/baz.fish?" > Is that where it saves temporary (what I referred to as in-memory) > functions? > That

Re: [Fish-users] funced and funcsave

2017-08-20 Thread Mark Volkmann
On Sat, Aug 19, 2017 at 9:33 PM, Kurtis Rader wrote: > On Sat, Aug 19, 2017 at 6:42 PM, Mark Volkmann > wrote: > >> These are really cool utilities! >> Let's see if I understand them correctly. >> I can enter "funced foo" and create a new function named "foo". >> I can immediate execute that by

Re: [Fish-users] funced and funcsave

2017-08-19 Thread Kurtis Rader
On Sat, Aug 19, 2017 at 6:42 PM, Mark Volkmann wrote: > These are really cool utilities! > Let's see if I understand them correctly. > I can enter "funced foo" and create a new function named "foo". > I can immediate execute that by entering "foo". > But if I exit the session, I'll lose it. > I c

[Fish-users] funced and funcsave

2017-08-19 Thread Mark Volkmann
These are really cool utilities! Let's see if I understand them correctly. I can enter "funced foo" and create a new function named "foo". I can immediate execute that by entering "foo". But if I exit the session, I'll lose it. I can enter "funcsave foo" and it will be written to ~/.config/fish/fun