Comments (6)
The selfupdate
command basically executes a git pull
on $_ANTIGEN_INSTALL_DIR
. What's the value of that environment variable? Check that it matches the path where you cloned antigen.
Hope that helps!
from antigen.
Actually _ANTIGEN_INSTALL_DIR is not available after antigen.sh is evaluated:
wangyandong@wangyandong-osx ~
» echo $_ANTIGEN_INSTALL_DIR 1 ↵
wangyandong@wangyandong-osx ~
»
» cd $_ANTIGEN_INSTALL_DIR
will navigate to the home directory.
from antigen.
Of course, as $_ANTIGEN_INSTALL_DIR
is a local variable on the antigen
command. Thought you could debug antigen.zsh
and check there the value of this variable.
from antigen.
Thanks for your reply.
I add the debug line within the antigen-selfupdate
function itself
antigen-selfupdate () {
echo "==> $_ANTIGEN_INSTALL_DIR"
( cd $_ANTIGEN_INSTALL_DIR
if [[ ! ( -d .git || -f .git ) ]]; then
echo "Your copy of antigen doesn't appear to be a git clone. " \
"The 'selfupdate' command cannot work in this case."
return 1
fi
...
and it still gives the same error
wangyandong@wangyandong-osx ~
» antigen selfupdate 1 ↵
==>
Your copy of antigen doesn't appear to be a git clone. The 'selfupdate' command cannot work in this case.
from antigen.
It looks as if $_ANTIGEN_INSTALL_DIR
was empty. Do this: Add the following lines to antigen.zsh
:
echo $0
echo $(dirname "$0")
After this line. In my set up it prints:
/home/<username>/.antigen//antigen.zsh
/home/<username>/.antigen
Are you using tmux? It some times messes up with env variables.
from antigen.
I'm not using tmux now.
echo $0
echo $(dirname "$0")
gives expected results
/Users/wangyandong/.antigen/antigen.zsh
/Users/wangyandong/.antigen
I think I've found the problem. antigen.sh
is sourced within a function I defined in my dotfiles. After moving the source /<path_to_antigen>/antigen.sh
line out of the function, it works fine now.
Thank you.
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
- 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.