antigen icon indicating copy to clipboard operation
antigen copied to clipboard

Antigen can't load git plugin correctly.

Open dominikheinz opened this issue 4 years ago • 0 comments

Description

Loading the git plugin with antigen from my zshrc gives the following error prompt: zsh: command not found: git_prompt_info.

Steps to reproduce

Minimal steps to reproduce this behavior. Example:

1 - Install zsh and antigen
2 - Use `antigen bundle git` in the zshrc to load/install the plugin, followed by the `antigen apply`
3 - Source the zshrc.
4 - Observer the error in the prompt: `zsh: command not found: git_prompt_info`

Expected behavior:

- The git plugin would be loaded normally

Software version

  • antigen version: 2.2.2
  • zsh --version: 5.8
  • uname -a: Linux void 5.9.4-arch1-1 #1 SMP PREEMPT Wed, 04 Nov 2020 21:41:09 +0000 x86_64 GNU/Linux

Configuration

  • gist of .antigenrc: I don't have one I think? I just specified all the info in the .zshrc
  • gist of `.zshrc:
# Setup environment variables
export EDITOR=nano
export HISTFILE=$HOME/.config/zsh/.zhistory
export ADOTDIR=$HOME/.config/antigen/

# Setup aliases
alias ll="ls -lha"

# Source antigen
source $ADOTDIR/antigen.zsh

# Setup options to parse prompt colors
autoload -U colors && colors
setopt promptsubst

# Load oh-my-zsh lib
antigen use oh-my-zsh

# Load plugins
antigen bundle command-not-found
antigen bundle git
antigen bundle pip
antigen bundle zsh-users/zsh-autosuggestions
antigen bundle zsh-users/zsh-completions
antigen bundle zsh-users/zsh-syntax-highlighting

# Load themes
#antigen theme robbyrussell

# Apply changes
antigen apply

More information

Note: My zshrc is in a custom location (/home/user/.config/zsh/) I used to only load the git plugin with oh-my-zsh just like this, and I never had this problem. However when loading the same plugin via antigen I am prompted this error.

dominikheinz avatar Nov 08 '20 12:11 dominikheinz