Skip to content
Snippets Groups Projects
Commit ff2d978a authored by Frank Terbeck's avatar Frank Terbeck Committed by Richard Hartmann
Browse files

Implement zsh completion for "run" and "rename" subcommands

parent 84247591
No related branches found
No related tags found
No related merge requests found
...@@ -45,12 +45,17 @@ function _vcsh-list-tracked-by () { ...@@ -45,12 +45,17 @@ function _vcsh-list-tracked-by () {
function _vcsh-rename () { function _vcsh-rename () {
(( CURRENT == 2 )) && __vcsh_repositories (( CURRENT == 2 )) && __vcsh_repositories
#TODO tell the user to add a new name (( CURRENT == 3 )) && _message "new repository name"
(( CURRENT > 3 )) && _nothing
} }
function _vcsh-run () { function _vcsh-run () {
(( CURRENT == 2 )) && __vcsh_repositories (( CURRENT == 2 )) && __vcsh_repositories
#TODO normal commands if (( CURRENT >= 3 )); then
words=( "${(@)words[3,-1]}" )
(( CURRENT -= 2 ))
_complete
fi
} }
function _vcsh-setup () { function _vcsh-setup () {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment