antigen icon indicating copy to clipboard operation
antigen copied to clipboard

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

Open deiga opened this issue 4 years ago • 1 comments

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

  • Antigen v2.2.3 (ff391b5)
  • zsh 5.7.1 (x86_64-apple-darwin18.2.0)
  • Darwin ITs-MBP-2 19.2.0 Darwin Kernel Version 19.2.0: Sat Nov 9 03:47:04 PST 2019; root:xnu-6153.61.1~20/RELEASE_X86_64 x86_64 i386 MacBookPro16,1 Darwin

Configuration

  • https://github.com/deiga/dotfiles/blob/master/zshrc
  • https://github.com/deiga/dotfiles/blob/master/zsh/plugins/antigen.zsh

deiga avatar Jan 02 '20 10:01 deiga

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.

jacktuck avatar Feb 27 '22 22:02 jacktuck