summaryrefslogtreecommitdiffstats
path: root/zsh/oh-my-zsh/plugins/fossil/_fossil
diff options
context:
space:
mode:
authorLibravatarLibravatar Biswakalyan Bhuyan <biswa@surgot.in> 2024-03-25 16:43:09 +0530
committerLibravatarLibravatar Biswakalyan Bhuyan <biswa@surgot.in> 2024-03-25 16:43:09 +0530
commita62114c91f2070c8c8453d117f3d81dc113e41ff (patch)
treef266e87af29a08c01f82bc32dd7d463d8ec4441a /zsh/oh-my-zsh/plugins/fossil/_fossil
parentaf120ab348f2e1a5a39dec035ed9dcf84189a64e (diff)
downloaddotfiles-a62114c91f2070c8c8453d117f3d81dc113e41ff.tar.gz
dotfiles-a62114c91f2070c8c8453d117f3d81dc113e41ff.tar.bz2
dotfiles-a62114c91f2070c8c8453d117f3d81dc113e41ff.zip
dotfile update
Diffstat (limited to 'zsh/oh-my-zsh/plugins/fossil/_fossil')
-rw-r--r--zsh/oh-my-zsh/plugins/fossil/_fossil32
1 files changed, 0 insertions, 32 deletions
diff --git a/zsh/oh-my-zsh/plugins/fossil/_fossil b/zsh/oh-my-zsh/plugins/fossil/_fossil
deleted file mode 100644
index d2d48bd..0000000
--- a/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 "$@"