zsh-users / antigen

The plugin manager for zsh.
http://antigen.sharats.me
MIT License
8k stars 279 forks source link

[bug] First invocation of `antigen list` throws error #695

Open deiga opened 4 years ago

deiga commented 4 years ago

Description

When I run antigen list in a new terminal tab for the first time I get an error instead of the list

$ antigen list                                                                                                                                                                                                                        
/usr/local/Cellar/antigen/2.2.3/share/antigen/antigen.zsh:2058: defining function based on alias `TRACE'
/usr/local/Cellar/antigen/2.2.3/share/antigen/antigen.zsh:2058: parse error near `()'

Steps to reproduce

Minimal steps to reproduce this behavior. Example:

1 - Open terminal
2 - antigen list 
3 - error is displayed

Expected behavior:

- List of antigen plugins

Software version

Configuration

jacktuck commented 2 years ago

I had the same thing. I forked @mathiasbynens 's dotfiles which had the following

# One of @janmoesen’s ProTip™s
for method in GET HEAD POST PUT DELETE TRACE OPTIONS; do
    alias "${method}"="lwp-request -m '${method}'"
done

so I had a TRACE env-var, which for whatever reason antigen does not like. I've removed these aliases since i don't use them anyway. The antigen error is now gone.