Comments (6)
I have for some time thought on something just like this. I like the names antigen-snapshot
and antigen-restore
. I definitely think this is a good next step for antigen, since what I like with pathogen (compared to vundle) is that with pathogen+gitmodules you commit your submodule hashes when you know that it will work because you have used it. I haven't tried Vundle yet, but afaik it's like antigen now. You don't have information about the versions of the submodules across your dotfiles repository.
An idea I had was to let antigen-snapshot
not take any arguments. It could create something like the .gitmodules
file and let antigen-snapshot
read from that standard file and checkout those revisions. But there is really no "default" place to put such a file (I guess everyone doesn't have a dotfiles repository). So yea, I guess one should do as you said, that is to just provide the desired snapshot path as argument. Then the user can then decide weather they wanna check it in or just put it in a gist somewhere.
So yea, I agree with everything you said, it makes sense and I like the naming.
from antigen.
Easiest way to do this IMHO is a newline separated pair of the location of origin
and the hash
from antigen.
@Tarrasch, you're right. Let's seeif Vundle ends up taking inspiration from antigen on this feature, that would be so much win :)
I haven't thought of the arguments to those commands, but come to think of it, what you say sounds good.
@GUIpsp, true. That is how the antigen-revert
command is currently implemented. It should be fairly easy to bring that in to these commands.
from antigen.
As for antigen-revert
, I think antigen-revert
could be a one-liner provided we have antigen-{snapshot,restore}
. We can let antigen-update
just internally do a antigen-snapshot
on some file and let antigen-revert
be an alias for antigen-restore that-file
. Would this work? If so it could save us some code duplication.
from antigen.
Yep, that's how it will be done.
from antigen.
Okay, I just pushed a quick implementation and I got to go now. There is also a test which is very lacking, IMO. Please check it out and let me know what you think.
I still have to change antigen-update
and antigen-revert
to use these new commands.
from antigen.
Related Issues (20)
- Lots of ^Ms HOT 1
- Is this project dead? HOT 22
- ADOTDIR where is it used? HOT 1
- Doc in Quick start about antigen bundle is wrong
- Where does the Debian package put antigen.zsh? HOT 2
- Can you add this website? HOT 1
- can't write zwc file HOT 1
- use antigen to install plugins in an env that has no internet
- `antigen init` fails generating cache when path includes spaces HOT 2
- there is a typo error in wiki page HOT 3
- Any plugin or script using bashcompinit & complete to define completion won't work after sourcing antigen HOT 4
- [feature request] New command which automatically purges / disables not explicit listed plugins
- $ADOTDIR not working
- no such keymap menuselect HOT 2
- no such file or directory HOT 3
- oh-my-zsh tmux plugin does not work when using antigen
- ZSH theme not working in VSCode Dev container Integrated Terminal HOT 1
- Dead Links in 'In the wild' section of the wiki
- Cannot change directories without `cd`
- Issue with sourcing zshrc after antigen install : bad substitution HOT 1
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 antigen.