Comments (12)
No, you should use:
zgenom ohmyzsh lib/git.zsh
zgenom ohmyzsh plugins/osx
This ensures that $ZSH
(ohmyzsh uses this) is set.
from zgenom.
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.
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 ofoh
lib/git
would need to belib/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.
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.
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.
Thanks, will try that out
from zgenom.
Auto updating using zgenom autoupdate --background
should already be supported.
I'm also planning to disable ohmyzsh when zgenom autoupdate
is used.
from zgenom.
What's the connection at the moment between the autoupdate function and OMZ?
from zgenom.
Would you mind having a look at #78 and check if it is clear for you?
from zgenom.
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.
I assume it did work for you, except the ohmyzsh issues?
from zgenom.
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)
- Deep links to "Migration from zgen" section seem to be broken (or poorly supported in browsers?) as parent "Installation" section is initially collapsed HOT 3
- Using zgenom load with just location doesn't source functions HOT 5
- Consider using tags and versions - for easier updating to stable releases HOT 3
- Option to silence output HOT 3
- Possible typo in README HOT 1
- Option MARK_DIRS makes `zgenom update` fail HOT 3
- zsh option 'noclobber' prevents autoupdate log from being updated HOT 1
- Add an unload command to unload the loaded plugin HOT 4
- zwc files everywhere HOT 6
- Provide documentation on recommended way to configure installation and plugin directories HOT 3
- Thanks for maintaining this HOT 1
- errror - did not send all necessary objects HOT 5
- zgenom autoupdate/selfupdate fails with "fatal: bad object" HOT 3
- Pin to a commit HOT 3
- Fails to load if plugin name is different from repository HOT 3
- Slow startup times via `zgenom ohmyzsh` HOT 2
- Slow init HOT 8
- Point base image to stable base image (22.04, or 24.04) HOT 2
- Unable to dynamically load a plugin HOT 4
- Occasional zsh processes pinning CPU HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zgenom.