Comments (13)
This works fine for me:
% mkdir ~znap/schrej % touch ~znap/schrej/schrej.zsh-theme % znap prompt schrej
It might be a good idea to include this in the example .zshrc
for visibility (maybe with starship
prompt). Great plugin manager btw :)
from zsh-snap.
@schrej @FardeenCodes @gokulsoumya You can now call znap prompt
without arguments to instantly show whatever (custom) prompt you currently have.
Additionally, I added an example of how you can use znap eval
to source individual files from the web, without having to clone any repos:
znap eval omz-git \
'curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/plugins/git/git.plugin.zsh'
from zsh-snap.
Can you give me some examples of plugins for which you have to use curl
or wget
? Then I can test with those. Likewise, what snippets would you like to use?
from zsh-snap.
Like I want to use Oh My Zsh git plugin(https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/git)
so i can download it in a directory with wget or curl and then link it with znap or an option to download it with znap only
I have called snippet from Zinit (https://github.com/zdharma/zinit)
from zsh-snap.
I looked into it and it looks like I will need git sparse-checkout
for this. However, since that subcommand is still labeled as "experimental", I will put this on the back burner for the moment. I will get back to it once the feature stabilizes.
from zsh-snap.
I think the initial idea was to be able to include plugins from the local filesystem, skipping the git clone logic.
For example: I have a custom zsh theme that I store in $DOTFILES/.themes/schrej.zsh-theme
. Znap doesn't seem to allow me to include that right now, but I'd like to.
An easy way to solve this might be to allow using absolute paths (beginning with /
or ~
) instead of repository names.
from zsh-snap.
@schrej What features from Znap would you like to use with plugins on your local file system? Can you give me some examples of what you would expect to be able to put into your .zshrc
file or type on the command line?
from zsh-snap.
Znap source and znap prompt
from zsh-snap.
Primarily I'd like to be able to do znap prompt $DOTFILES/.themes/schrej.zsh-theme
to load my zsh theme to speed up the startup.
from zsh-snap.
This works fine for me:
% mkdir ~znap/schrej
% touch ~znap/schrej/schrej.zsh-theme
% znap prompt schrej
from zsh-snap.
This works, too:
% mkdir ~znap/.themes
% touch ~znap/.themes/schrej.zsh-theme
% znap prompt .themes schrej
from zsh-snap.
@FardeenCodes @schrej Did you try the above?
from zsh-snap.
Sorry @marlonrichert, I forgot to try it. It's working well, thank you!
Being able to just provide a full path to that command would be more convenient imo, but it's fine this way as well.
from zsh-snap.
Related Issues (20)
- `znap/functions` directory is not added to `$fpath`
- [Feature Request] Add an option to load only completions
- Possible CPU issue with async compinit compilation and MacOS HOT 2
- [Request] Use `$HOME` instead of `/home/username` in `~/.gitconfig` HOT 2
- auto completion not working HOT 3
- Zsh uses 100% CPU when using fzf (or other bindkey scripts) before znap has loaded and the terminal is closed HOT 1
- Pipenv initial press of tab for completion generates error HOT 1
- znap always pulls ohmyzsh plugins on zsh startup HOT 17
- VSCode is unable to pickup binaries HOT 1
- znap latest is broken when installed to /etc/znap HOT 3
- [Feature] Ability to clean cached `eval` HOT 2
- `znap cache` command
- no "install.zsh" file HOT 1
- Cache command output for `znap fpath` HOT 2
- compdump compilation not working HOT 1
- Prompt fails to load and terminal session immedately exits HOT 1
- Typo in README ("znal eval") HOT 1
- CRLF should transform to LF in Ubuntu WSL
- znap pull error HOT 1
- Unable to update git repos where default branch name has '/'
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 zsh-snap.