Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zsh completions
- X-seq: zsh-users 20200
- From: Kannan Varadhan <kvaradhan3@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: zsh completions
- Date: Mon, 11 May 2015 10:56:24 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1431366986; bh=pqH7NgE5pO0eDw2VQ9a01tpFVyjUm+rjpaK12vOgLCc=; h=From:Subject:Date:To:From:Subject; b=RMgdhPnFlCRQTwF1tER0Aw5ByxtLjApn52LJB+7TbHDnFoauQuFpFgzw6N474HK4ChE1+C4z3RUzqI+HahlPPn8+Kjpye/7IeVejAwnMXvMWqQ7lbSm7W60g1cyMc3RYsSgm0eg/UWHME5eiTzqaa/bJq3dcsPHT3C9qchHXl7xoPn6uu5WALyK7pZ1Kn1ppWaOzC46DEGqDr6jsbPRees2rAgRWag8gYGGQk+8s148aegUL9XbhbV+dM4Jp5e7Qy2DDnqVZYUK6P24eRmbhdzEm7gmtQ11Uu9GdTdv7vAPKEL+gpQSxdzc+HlLqpMv8ZoHEYqJL8fPVj/H97Y7bMg==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
I am seeing a couple of stumpers (for me) on zsh completions. Wanted to first reset the path to vanilla zsh. Then unlash and load complaint.
Last login: Mon May 11 10:47:08 on ttys008
/usr/share/zsh/site-functions /usr/share/zsh/5.0.5/functions
/Users/kvaradha/.rc/zshell/.zshrc:21: write error
~ 1% fpath=( /usr/share/zsh/site-functions /usr/share/zsh/5.0.5/functions )
~ 2% unhash -f compinit 10:47:37
~ 3% autoload -U compinit 10:47:41
~ 4% compinit 10:47:45
zsh: compinit: function not defined by file
~ 5% 10:47:47
It complains about one specific function, but I can’t tell which one, given a large number get autoloaded here..
~ 5% 10:47:49
~ 5% unhash -f compinit 10:47:49
~ 6% autoload -U compinit 10:47:54
~ 7% compinit 2>&- 10:47:56
zsh: write error
~ 8% 10:48:02
If I try to ignore the issue by closing stderr, I get this write error.
Now the stumper, this error only comes on after compinit has actually finished executing.
By this, I mean that the tail end of my compinit file is:
if [[ ${_i_line[2]} = expand-or-complete ]] &&
zstyle -a ':completion:' completer _i_line &&
(( ${_i_line[(i)_expand]} <= ${#_i_line} )); then
bindkey '^i' complete-word
fi
unfunction compinit compaudit
autoload -Uz compinit compaudit
return 0
and the error shows up after compinit has returned.
Puzzled,
Kannan
Messages sorted by:
Reverse Date,
Date,
Thread,
Author