X-Git-Url: https://src.twobees.de/?a=blobdiff_plain;f=stow%2Foh-my-zsh%2F.oh-my-zsh%2Fplugins%2Ffossil%2F_fossil;fp=stow%2Foh-my-zsh%2F.oh-my-zsh%2Fplugins%2Ffossil%2F_fossil;h=0000000000000000000000000000000000000000;hb=1a8e170bbe5c6641a26ab1ce2e6ce6c5c1faa4cd;hp=d2d48bdec82e25a848383f761f6a03f8ffe67549;hpb=475ba35502579302593f4735c853c49ef1845dcb;p=dotfiles.git diff --git a/stow/oh-my-zsh/.oh-my-zsh/plugins/fossil/_fossil b/stow/oh-my-zsh/.oh-my-zsh/plugins/fossil/_fossil deleted file mode 100644 index d2d48bd..0000000 --- a/stow/oh-my-zsh/.oh-my-zsh/plugins/fossil/_fossil +++ /dev/null @@ -1,32 +0,0 @@ -#compdef fossil - -function _fossil_get_command_list () { - fossil help -a | grep -v "Usage|Common|This is" -} - -function _fossil () { - local context state state_descr line - typeset -A opt_args - - _arguments \ - '1: :->command'\ - '2: :->subcommand' - - case $state in - command) - local _OUTPUT=$(fossil branch 2>&1 | grep "use --repo") - if [[ -z "$_OUTPUT" ]]; then - compadd "$(_fossil_get_command_list)" - else - compadd clone init import help version - fi ;; - subcommand) - case "$words[2]" in - help) compadd "$(_fossil_get_command_list)" ;; - add) compadd "$(fossil extra)" ;; - *) compcall -D ;; - esac ;; - esac -} - -_fossil "$@"