aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorBen Burwell <ben@benburwell.com>2019-08-13 23:24:53 -0400
committerBen Burwell <ben@benburwell.com>2019-08-13 23:24:53 -0400
commit4cd20c94b9f07b3fad8944c998a71eba0fce928a (patch)
treedce231692b9f922b64f22508e7dab043c96de233 /templates
parent5e349e2c951c182e277c1e1ab28391d44d0ed90b (diff)
bin: fix docker completion script
Diffstat (limited to 'templates')
-rwxr-xr-xtemplates/.bin/_docker3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/.bin/_docker b/templates/.bin/_docker
index 4b0c1e2..147de41 100755
--- a/templates/.bin/_docker
+++ b/templates/.bin/_docker
@@ -286,7 +286,8 @@ __docker_complete_detach_keys() {
compset -P "*,"
keys=(${:-{a-z}})
- ctrl_keys=(${:-ctrl-{{a-z},{@,'[','\\','^',']',_}}})
+ {{/* The next line is escaped as a Go template! */}}
+ {{`ctrl_keys=(${:-ctrl-{{a-z},{@,'[','\\','^',']',_}}})`}}
_describe -t detach_keys "[a-z]" keys -qS "," && ret=0
_describe -t detach_keys-ctrl "'ctrl-' + 'a-z @ [ \\\\ ] ^ _'" ctrl_keys -qS "," && ret=0
}