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

Merge pull request #234 from danielshahaf/completion-run-external-commands-v1

completion: Complete only external command for 'run'.
parents 44edd6d7 5500082f
No related branches found
No related tags found
No related merge requests found
......@@ -63,10 +63,12 @@ function _vcsh-rename () {
function _vcsh-run () {
(( CURRENT == 2 )) && __vcsh_repositories
if (( CURRENT >= 3 )); then
(( CURRENT == 3 )) && _command_names -e
if (( CURRENT >= 4 )); then
# see _precommand in zsh
words=( "${(@)words[3,-1]}" )
(( CURRENT -= 2 ))
_complete
_normal
fi
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment