GithubHelp home page GithubHelp logo

Personal Functions about oh-my-fish HOT 6 CLOSED

oh-my-fish avatar oh-my-fish commented on May 27, 2024
Personal Functions

from oh-my-fish.

Comments (6)

bpinto avatar bpinto commented on May 27, 2024

I'd advise creating a plugin for your personal functions

Example:

omf new pkg rrosson and the add your personal functions to the functions folder inside the plugin.

from oh-my-fish.

bobthecow avatar bobthecow commented on May 27, 2024

@bpinto It feels a bit weird adding a plugin for things like this. It wouldn't be a bad idea to support autoloading functions and completions out of $OMF_CONFIG/{functions,completions}.

from oh-my-fish.

bpinto avatar bpinto commented on May 27, 2024

I honestly prefer the plugin solution. It's how I handle personal functions. However we do already load functions defined on $OMF_CONFIG/functions

from oh-my-fish.

bobthecow avatar bobthecow commented on May 27, 2024

I use personal plugins as well, but it's nice to support a "dump things here" bucket for when the friction of adding a plugin seems too high.

And it turns out we already support it :P

from oh-my-fish.

bobthecow avatar bobthecow commented on May 27, 2024

Let's add completions as well?

from oh-my-fish.

rrosson avatar rrosson commented on May 27, 2024

Ok, You guys are awesome. I had just finished making a dumping ground pkg for my small collection of functions and two completions when you guys gave me the answer I was looking for. I created a functions and completions directory inside of ~/config/omf/ and copied my files there. restarted with a new shell and everything works.

from oh-my-fish.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.