Skip to content

Commit

Permalink
Merge pull request #234 from danielshahaf/completion-run-external-com…
Browse files Browse the repository at this point in the history
…mands-v1

completion: Complete only external command for 'run'.
  • Loading branch information
RichiH authored Aug 28, 2017
2 parents 44edd6d + 5500082 commit 978b5a8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions _vcsh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 978b5a8

Please sign in to comment.