update _memo
This commit is contained in:
parent
aea3d9152e
commit
7321e3d197
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue