Skip to content
Snippets Groups Projects
Commit 5500082f authored by Daniel Shahaf's avatar Daniel Shahaf
Browse files

completion: Complete only external commands for 'run'.

The difference is easiest to see when the following style is in effect:
.
	zstyle ':completion:*' group-name ''
parent f7f3bce0
Branches
No related tags found
No related merge requests found
...@@ -63,10 +63,12 @@ function _vcsh-rename () { ...@@ -63,10 +63,12 @@ function _vcsh-rename () {
function _vcsh-run () { function _vcsh-run () {
(( CURRENT == 2 )) && __vcsh_repositories (( 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]}" ) words=( "${(@)words[3,-1]}" )
(( CURRENT -= 2 )) (( CURRENT -= 2 ))
_complete _normal
fi fi
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment