Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

how do you make BASH remember a function?

Running mac os 10.6.

I know if I put an alias in ~/.profile, it remembers it. How do I make this work for a function? It doesn't work if I put it in ~/.profile

Thanks

2 Answers

Relevance
  • 9 years ago
    Favorite Answer

    if you put something like below in your profile, it should work..

    Source(s): function testfun { echo "test" }
  • Nick
    Lv 4
    9 years ago

    define it in either file: ~/'username'.profile or ~/.alias

Still have questions? Get your answers by asking now.