Comments (4)
Hey @xfzv in case you're still interested in installing zoxide with zgenom:
I always had the idea of extensions for zgenom floating in the back of my mind.
Since zgenom just calls functions named zgenom-*
under the hood basically an extension is just writing a function matching this pattern.
Now I also added a way to add completion for those functions.
The first extension is zgenom-ext-release. You can use it to download assets from GitHub Releases and add them to your PATH.
PS: for now you need to use zgenom #71.
from zgenom.
Hey @xfzv,
unfortunately this isn't possible at the current time.
It would be possible if the zoxide repo contains a bin itself.
zgenom bin ajeetdsouza/zoxide path/to/zoxide # this would install zoxide in this shell.
zgenom load ajeetdsouza/zoxide # this should then configure the shell so that zoxide works.
zinit installs zoxide by loading it from GitHub relases. (That's what the from"gh-r"
says)
I'm not sure if I want to support GitHub releases since I don't consider a rust binary a zsh plugin.
There's also no need to install zoxide as a zsh plugin since it just executes eval "$(zoxide init zsh)"
.
If I use zoxide I would add zoxide init zsh > $ZGEN_DIR/zoxide.zsh
in my zshrc after zgenom save
.
and then source $ZGEN_DIR/zoxide.zsh
after the if zgenom saved ... fi
block.
Executing binaries at startup is quite slow. This way you'd only execute the binary when you've used zgenom reset
before and else use a cached zoxide init file.
You should call zgenom reset every time you update zoxide though since a new version could create a new init file. (Or you call zoxide init zsh > $ZGEN_DIR/zoxide.zsh
manually)
from zgenom.
I'm not sure if I want to support GitHub releases since I don't consider a rust binary a zsh plugin.
I agree.
Until now I was relying on zinit to handle zoxide because it was more convenient for me (I'm using both Arch Linux and Gentoo):
- No need to install it from the AUR and an additional Gentoo overlay
- Updates coming directly from upstream with
% zinit update --all
, I wouldn't depend on AUR/Gentoo overlay maintainers reactivity
I noticed that it was recently moved from the AUR to Arch Linux community repository. I might install it from dm9pZCAq overlay on Gentoo, for now ebuilds have been updated one or two days after the initial release which is totally fine.
Anyway, thank you for the detailed answer!
Feel free to close this.
from zgenom.
Alright, feel free to open another issue in case you have more questions or suggestions 👍
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.