1 |
commit: 6168d1691081c4566fe1ba9903dba0d163b1efcc |
2 |
Author: Tim Harder <radhermit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 30 10:53:57 2014 +0000 |
4 |
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 30 10:53:57 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/zsh-completion.git;a=commit;h=6168d169 |
7 |
|
8 |
_eselect: escape colons in profile list |
9 |
|
10 |
Zsh uses colons in completion values to separate field names and values |
11 |
so the profiles with unescaped colons don't show up for completion. |
12 |
|
13 |
--- |
14 |
_eselect | 2 +- |
15 |
1 file changed, 1 insertion(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/_eselect b/_eselect |
18 |
index 702bf4c..ae105d5 100644 |
19 |
--- a/_eselect |
20 |
+++ b/_eselect |
21 |
@@ -56,7 +56,7 @@ _eselect_ctags () { |
22 |
_eselect_profile () { |
23 |
local profilelist |
24 |
if (( $words[(I)(set)] )); then |
25 |
- profilelist=(${(f)"$(eselect --brief --color=no profile list)"}) |
26 |
+ profilelist=(${${(f)"$(eselect --brief --color=no profile list)"}/:/\\:}) |
27 |
_values -w "available profiles" $profilelist[@] \ |
28 |
"--force[Forcibly set the symlink]" && return 0 |
29 |
fi |