Skip to content
Snippets Groups Projects
Commit 3c5bb9b0 authored by Richard Hartmann's avatar Richard Hartmann Committed by GitHub
Browse files

Merge pull request #227 from danielshahaf/completion-set-context-foreach-dispatch-v1

completion: Set the context correctly in 'foreach'.
parents c5b8fc49 d3ff85c0
Branches
No related tags found
No related merge requests found
...@@ -24,7 +24,7 @@ function _vcsh-enter () { ...@@ -24,7 +24,7 @@ function _vcsh-enter () {
} }
function _vcsh-foreach () { function _vcsh-foreach () {
_dispatch git git _dispatch vcsh-foreach git
} }
function _vcsh-help () { function _vcsh-help () {
...@@ -138,6 +138,7 @@ function _vcsh () { ...@@ -138,6 +138,7 @@ function _vcsh () {
if ! (( ${+functions[_vcsh-$vcshcommand]} )); then if ! (( ${+functions[_vcsh-$vcshcommand]} )); then
# There is no handler function, so this is probably the name # There is no handler function, so this is probably the name
# of a repository. Act accordingly. # of a repository. Act accordingly.
# FIXME: this may want to use '_dispatch vcsh git'
GIT_DIR=$VCSH_REPO_D/$words[1].git _dispatch git git GIT_DIR=$VCSH_REPO_D/$words[1].git _dispatch git git
else else
curcontext="${curcontext%:*:*}:vcsh-${vcshcommand}:" curcontext="${curcontext%:*:*}:vcsh-${vcshcommand}:"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment