aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2014-03-30 03:53:57 -0700
committerTim Harder <radhermit@gentoo.org>2014-03-30 03:53:57 -0700
commit6168d1691081c4566fe1ba9903dba0d163b1efcc (patch)
treec5240bca21ec8b0070ee541d1d072a140505ff62
parent_eselect: use --brief option to simplify value parsing (diff)
downloadzsh-completion-6168d1691081c4566fe1ba9903dba0d163b1efcc.tar.gz
zsh-completion-6168d1691081c4566fe1ba9903dba0d163b1efcc.tar.bz2
zsh-completion-6168d1691081c4566fe1ba9903dba0d163b1efcc.zip
_eselect: escape colons in profile list
Zsh uses colons in completion values to separate field names and values so the profiles with unescaped colons don't show up for completion.
-rw-r--r--_eselect2
1 files changed, 1 insertions, 1 deletions
diff --git a/_eselect b/_eselect
index 702bf4c..ae105d5 100644
--- a/_eselect
+++ b/_eselect
@@ -56,7 +56,7 @@ _eselect_ctags () {
_eselect_profile () {
local profilelist
if (( $words[(I)(set)] )); then
- profilelist=(${(f)"$(eselect --brief --color=no profile list)"})
+ profilelist=(${${(f)"$(eselect --brief --color=no profile list)"}/:/\\:})
_values -w "available profiles" $profilelist[@] \
"--force[Forcibly set the symlink]" && return 0
fi