Skip to content
Snippets Groups Projects
Commit 84247591 authored by Richard Hartmann's avatar Richard Hartmann
Browse files

Make zsh not complete on an endless cycle of repos

parent b04d8138
Branches
Tags
No related merge requests found
#compdef vcsh #compdef vcsh
function __vcsh_repositories () { function __vcsh_repositories () {
#TODO list only one repo and stop
local expl local expl
local -a repos local -a repos
repos=( ${(f)"$(command vcsh list)"} ) repos=( ${(f)"$(command vcsh list)"} )
...@@ -17,11 +16,11 @@ function _vcsh-clone () { ...@@ -17,11 +16,11 @@ function _vcsh-clone () {
} }
function _vcsh-delete () { function _vcsh-delete () {
__vcsh_repositories (( CURRENT == 2 )) && __vcsh_repositories
} }
function _vcsh-enter () { function _vcsh-enter () {
__vcsh_repositories (( CURRENT == 2 )) && __vcsh_repositories
} }
function _vcsh-help () { function _vcsh-help () {
...@@ -41,33 +40,33 @@ function _vcsh-list-tracked () { ...@@ -41,33 +40,33 @@ function _vcsh-list-tracked () {
} }
function _vcsh-list-tracked-by () { function _vcsh-list-tracked-by () {
__vcsh_repositories (( CURRENT == 2 )) && __vcsh_repositories
} }
function _vcsh-rename () { function _vcsh-rename () {
__vcsh_repositories (( CURRENT == 2 )) && __vcsh_repositories
#TODO tell the user to write new stuff #TODO tell the user to add a new name
} }
function _vcsh-run () { function _vcsh-run () {
__vcsh_repositories (( CURRENT == 2 )) && __vcsh_repositories
_commands
#TODO normal commands #TODO normal commands
} }
function _vcsh-setup () { function _vcsh-setup () {
__vcsh_repositories (( CURRENT == 2 )) && __vcsh_repositories
} }
function _vcsh-version () { function _vcsh-version () {
_nothing
} }
function _vcsh-which () { function _vcsh-which () {
__vcsh_not_implemented_yet "$0" #TODO _files
} }
function _vcsh-write-gitignore () { function _vcsh-write-gitignore () {
__vcsh_repositories (( CURRENT == 2 )) && __vcsh_repositories
} }
function _vcsh () { function _vcsh () {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment