FS#30856 - zsh: missing compdef
Attached to Project:
Arch Linux
Opened by John (gee) - Thursday, 26 July 2012, 07:45 GMT
Last edited by Eric Belanger (Snowman) - Sunday, 29 July 2012, 23:56 GMT
Opened by John (gee) - Thursday, 26 July 2012, 07:45 GMT
Last edited by Eric Belanger (Snowman) - Sunday, 29 July 2012, 23:56 GMT
|
Details
Since 5.0.0-1, and same with 5.0.0-2, compdef has been not
available:
/etc/zsh/zshrc:526: command not found: compdef /etc/zsh/zshrc:527: command not found: compdef Going back to 4.3.17-2 (the latest one before 5.0.0 was released) solves the problem. Is this a missing dependency or something broke? Thanks! |
This task depends upon
Closed by Eric Belanger (Snowman)
Sunday, 29 July 2012, 23:56 GMT
Reason for closing: Fixed
Additional comments about closing: The config file change fixed the issue.
Sunday, 29 July 2012, 23:56 GMT
Reason for closing: Fixed
Additional comments about closing: The config file change fixed the issue.
I only have these:
compdef _pacman pacman-color=pacman
compdef _pacman yaourt=pacman
Is there something else I should do?
Thanks!
autoload -Uz compinit && compinit
you have to load the module that has compdef in it before you can use it
is4 && autoload -U compinit && compinit
I am not sure what differences there are between your line and this one though, I have not looked at zshrc in years, but with yours it works.
What are the differences?
Thanks!
not sure about -U vs -Uz yet.
I guess that is the risk of getting a config file from a template online and forgetting about it later...
Thank you for your help.