Giter VIP home page Giter VIP logo

Comments (12)

jandamm avatar jandamm commented on September 27, 2024 1

No, you should use:

zgenom ohmyzsh lib/git.zsh
zgenom ohmyzsh plugins/osx

This ensures that $ZSH (ohmyzsh uses this) is set.

from zgenom.

arrrgi avatar arrrgi commented on September 27, 2024

I should add to this by saying that it looks like this is supported in some manner already in your docs. But doesn't seem to be working for me, hence the request to support the format above for loading plugins from a path.

Happy to be educated on how to do this properly if this is just simply me not understanding how to use the zgenom load function correctly.

from zgenom.

jandamm avatar jandamm commented on September 27, 2024

Hi @arrrgi,

thanks for pointing out that the README isn't clear enough about this "feature".

zgenom ohmyzsh # initialize ohmyzsh base
zgenom ohmyzsh plugins/osx # load plugin folder named 'osx' in the ohmyzsh repo

In the example above you can just comment out zgenom ohmyzsh and it should work as wished.


The issues with the code you've posted above:

  • there's a typo in ohmyzsh/oymyzsh oy instead of oh
  • lib/git would need to be lib/git.zsh*

* The path to load needs to either be a folder or the full name of the file. plugin/osx is a folder but lib/git.zsh.
I'm not sure if I should check for missing file endings since there might be a folder lib/git and then it might be that the file is loaded instead.

from zgenom.

jandamm avatar jandamm commented on September 27, 2024

To clarify zgenom ohmyzsh a bit:

It's actually nothing more than a thin wrapper around zgenom load ohmyzsh/ohmyzsh.
It just makes sure that $ZSH is set correctly and uses environment variables to define the branch/repo (in case you want to use a fork).
https://github.com/jandamm/zgenom/blob/main/functions/zgenom-ohmyzsh

from zgenom.

arrrgi avatar arrrgi commented on September 27, 2024

Yes, sorry about the typo. I am using the correctly spelled version in my code, I fat fingered it when creating the issue here.

So if I want to just load lib/git.zsh and plugins/osx, I would simply need following in my config?

zgenom load lib/git.zsh
zgenom load plugins/osx

I don't want the rest of the OMZ framework cloned, just specific plugins or libs so that I can avoid all the other mess

from zgenom.

arrrgi avatar arrrgi commented on September 27, 2024

Thanks, will try that out

from zgenom.

jandamm avatar jandamm commented on September 27, 2024

Auto updating using zgenom autoupdate --background should already be supported.
I'm also planning to disable ohmyzsh when zgenom autoupdate is used.

from zgenom.

arrrgi avatar arrrgi commented on September 27, 2024

What's the connection at the moment between the autoupdate function and OMZ?

from zgenom.

jandamm avatar jandamm commented on September 27, 2024

Would you mind having a look at #78 and check if it is clear for you?

from zgenom.

jandamm avatar jandamm commented on September 27, 2024

zgenom autoupdate will regularly update all git repos cloned via zgenom (including ohmyzsh) and zgenom itself.

ohmyzsh has a builtin function which checks for updates of only ohmyzsh.

So you don't need it if you use zgenom for automatic updates.
I'm also not sure if ohmyzsh updates user plugins which zgenom does.

from zgenom.

jandamm avatar jandamm commented on September 27, 2024

I assume it did work for you, except the ohmyzsh issues?

from zgenom.

arrrgi avatar arrrgi commented on September 27, 2024

Will let you know if I have any problems, assume for now it's good and I will test later :)

from zgenom.

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.