diff --git a/completion/zsh/_memo b/completion/zsh/_memo index adc3d06..00e5b65 100755 --- a/completion/zsh/_memo +++ b/completion/zsh/_memo @@ -12,6 +12,7 @@ function _memo { show\:'show a topic' edit\:'edit a topic' list\:'print a list of all topics' + git\:'run git command' ))" \ "*::arg:->args" @@ -19,6 +20,9 @@ function _memo { add|copy|show|edit) _memo_topics ;; + git) + _git + ;; *) ;; esac @@ -31,3 +35,17 @@ function _memo_topics { compadd -X "A vailable Topics" $topics } +function _git { + local -a subcommands + subcommands=( + "init:Initialize git repository" + "status:Status of git repository" + "push:Push to remote repository" + "pull:Pull from remote repository" + "config:Show git config" + "log:Show git log" + "reflog:Show git reflog" + ) + _describe -t commands 'git' subcommands +} +