Comments (3)
same issue here
plus
/.zshrc:105: command not found: antigen
a/antigen.zsh:source:2: no such file or directory: /home/llama/bin/antigen.zsh
archlinux%
from antigen.
To anyone reading this answer: The project seems lack of maintaince, althought it runs well for now. You may consider choosing another plugin manager. I am still using Antigen just because it is easy to bundle with oh-my-zsh.
Solution
Same issue to me today, and I found a solution:
# remove old installation, please check before exec it
#rm -r .antigen .antigen.zsh
# and re-install by git clone
git clone https://github.com/zsh-users/antigen.git ~/.antigen
# add source line to .zshrc. you may edit .zshrc manually
echo 'source ~/.angiten/antigen.zsh' >> ~/.zshrc
# finally, source the new file(or restart your shell),
# and wait for a while for antigen to prepare everything for you!
source ~/.zshrc
Detailed Reason
I was confused by the error message at first, until I ran which antigen
and got output like:
antigen () {
local MATCH MBEGIN MEND
[[ "$ZSH_EVAL_CONTEXT" =~ "toplevel:*" || "$ZSH_EVAL_CONTEXT" =~ "cmdarg:*" ]] && source "/home/name/.antigen/antigen.zsh" && eval antigen $@
return 0
}
and I search it in source code, and find something here.
The issue seems to be caused by the hard encoded path $_ANTIGEN_INSTALL_DIR/antigen.zsh
in the cache file($ANTIGEN_CACHE
, /home/name/.antigen/init.zsh
by default).
So my first solution to this issue is modifying the .antigen.zsh
like:
# not perfect solution, edit the .antigen.zsh and delete all old caches
sed -i "s/_ANTIGEN_INSTALL_DIR\/antigen.zsh/_ANTIGEN_INSTALL_DIR\/.antigen.zsh/g" .antigen.zsh
antigen reset
but this solution is not perfect too, some commands such like antigen selfupdate
still have error. I think there are more hard-encoded path in the repo.
Finally, when I am wandering in the repo, I find a file named ./antigen.zsh
, which you just need to source
then evething will be ok. So the issues is solved happily, by the non-official installation method mentioned above.
from antigen.
Hi
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 1
- 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
- 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.