From 04ef27078d527e4b3d506b7f12da7b86530d1adf Mon Sep 17 00:00:00 2001 From: tinogomes Date: Sat, 26 Mar 2016 13:10:07 -0300 Subject: [PATCH 01/11] no correction for `su` --- lib/correction.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/correction.zsh b/lib/correction.zsh index 3e1415a0b..27a6f036d 100644 --- a/lib/correction.zsh +++ b/lib/correction.zsh @@ -7,6 +7,7 @@ if [[ "$ENABLE_CORRECTION" == "true" ]]; then alias mkdir='nocorrect mkdir' alias mv='nocorrect mv' alias mysql='nocorrect mysql' + alias su='nocorrect su' alias sudo='nocorrect sudo' setopt correct_all From c630ac2c31d8489fa7712f347c1ce6247736b128 Mon Sep 17 00:00:00 2001 From: tinogomes Date: Sat, 26 Mar 2016 13:34:23 -0300 Subject: [PATCH 02/11] new aliases for git plugin --- plugins/git/git.plugin.zsh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh index 95ce1ae26..dac15a5ae 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -215,3 +215,8 @@ alias glum='git pull upstream master' alias gwch='git whatchanged -p --abbrev-commit --pretty=medium' alias gwip='git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit -m "--wip--"' + +# Remove from repo all files deleted +alias gitstrm="git st | egrep 'deleted' | sed -e 's/#//' -e 's/deleted:/git rm/' | sh" + +alias gitgcprune="git remote prune origin ; git gc --prune --aggressive" From 3461513aa537ffb4765a373c5d717c8853a68ec3 Mon Sep 17 00:00:00 2001 From: tinogomes Date: Sat, 26 Mar 2016 13:35:03 -0300 Subject: [PATCH 03/11] Aliases for httipe plugin --- plugins/httpie/httpie.plugin.zsh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/plugins/httpie/httpie.plugin.zsh b/plugins/httpie/httpie.plugin.zsh index 68ead6c67..225f83ec0 100644 --- a/plugins/httpie/httpie.plugin.zsh +++ b/plugins/httpie/httpie.plugin.zsh @@ -30,4 +30,11 @@ function _httpie_completion() { '*: :->args' && ret=0 } -compdef _httpie_completion http \ No newline at end of file +compdef _httpie_completion http + +alias 'GET=http -v GET' +alias 'POST=http -v POST' +alias 'PUT=http -v PUT' +alias 'PATCH=http -v PATCH' +alias 'DELETE=http -v DELETE' +alias 'OPTION=http -v OPTION' From 67dc122bcbe731e7fd2486e2af9da6b746466f5d Mon Sep 17 00:00:00 2001 From: tinogomes Date: Sat, 26 Mar 2016 13:35:45 -0300 Subject: [PATCH 04/11] LOL plugin: New function - flipcoin --- plugins/lol/lol.plugin.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/lol/lol.plugin.zsh b/plugins/lol/lol.plugin.zsh index 1b32ec2e4..5de1ffa02 100644 --- a/plugins/lol/lol.plugin.zsh +++ b/plugins/lol/lol.plugin.zsh @@ -48,3 +48,5 @@ alias ooanward='git commit -am' alias letcat='git checkout' alias violenz='git rebase' +# Flip a coin function. http://twitter.com/#!/climagic/status/195158151534882817 +flipcoin() { [[ $(( $RANDOM % 2 )) == 0 ]] && echo heads || echo tails; } From 6c81f2cd23b84cc96d6abff3a452050ddf85f62b Mon Sep 17 00:00:00 2001 From: tinogomes Date: Sat, 26 Mar 2016 13:38:42 -0300 Subject: [PATCH 05/11] RVM plugin: new alias for gemset --- plugins/rvm/rvm.plugin.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/rvm/rvm.plugin.zsh b/plugins/rvm/rvm.plugin.zsh index 53e809aaf..20793cda9 100644 --- a/plugins/rvm/rvm.plugin.zsh +++ b/plugins/rvm/rvm.plugin.zsh @@ -2,6 +2,7 @@ fpath=($rvm_path/scripts/zsh/Completion $fpath) alias rubies='rvm list rubies' alias gemsets='rvm gemset list' +alias rvms='rvm gemset' local ruby18='ruby-1.8.7' local ruby19='ruby-1.9.3' From 3c082412f82759258930cc94b4764d9528114d50 Mon Sep 17 00:00:00 2001 From: tinogomes Date: Sat, 26 Mar 2016 13:39:20 -0300 Subject: [PATCH 06/11] New plugin with aliases for vagrant --- plugins/vagrant/vagrant.plugin.zsh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 plugins/vagrant/vagrant.plugin.zsh diff --git a/plugins/vagrant/vagrant.plugin.zsh b/plugins/vagrant/vagrant.plugin.zsh new file mode 100644 index 000000000..ac651ebe4 --- /dev/null +++ b/plugins/vagrant/vagrant.plugin.zsh @@ -0,0 +1,8 @@ +alias vssh='vagrant ssh' +alias vup='vagrant up' +alias vupp='vagrant up --provision' +alias vprov='vagrant provision' +alias vhalt='vagrant halt' +alias vdestroy='vagrant destroy' +alias vstatus='vagrant status' +alias vst='vstatus' From 11e00872c31b5a052e295a7e6dc5650356246372 Mon Sep 17 00:00:00 2001 From: tinogomes Date: Sat, 26 Mar 2016 13:40:57 -0300 Subject: [PATCH 07/11] Mercurial plugin: Adding completion --- plugins/mercurial/_mercurial | 638 +++++++++++++++++++++++++++++++++++ 1 file changed, 638 insertions(+) create mode 100644 plugins/mercurial/_mercurial diff --git a/plugins/mercurial/_mercurial b/plugins/mercurial/_mercurial new file mode 100644 index 000000000..329249b46 --- /dev/null +++ b/plugins/mercurial/_mercurial @@ -0,0 +1,638 @@ +#compdef hg +#autoload + +local -a _1st_arguments + +_1st_arguments=( + 'add:add the specified files on the next commit' + 'addremove:add all new files, delete all missing files' + {annotate,blame}':show changeset information by line for each file' + 'archive:create an unversioned archive of a repository revision' + 'backout:reverse effect of earlier changeset' + 'bisect:subdivision search of changesets' + 'bookmarks:track a line of development with movable markers' + 'branch:set or show the current branch name' + 'branches:list repository named branches' + 'bundle:create a changegroup file' + 'cat:output the current or given revision of files' + 'clone:make a copy of an existing repository' + {commit,ci}':commit the specified files or all outstanding changes' + {copy,cp}':mark files as copied for the next commit' + 'diff:diff repository (or selected files)' + 'export:dump the header and diffs for one or more changesets' + 'fetch:pull changes from a remote repository, merge new changes if needed. (FetchExtension)' + 'forget:forget the specified files on the next commit' + 'grep:search for a pattern in specified files and revisions' + 'heads:show current repository heads or show branch heads' + 'help:show help for a given topic or a help overview' + {identify,id}:'identify the working copy or specified revision' + {import,patch}':import an ordered set of patches' + {incoming,in}':show new changesets found in source' + 'init:create a new repository in the given directory' + 'locate:locate files matching specific patterns' + {log,history}':show revision history of entire repository or files' + 'manifest:output the current or given revision of the project manifest' + 'merge:merge working directory with another revision' + {outgoing,out}':show changesets not found in the destination' + 'parents:show the parents of the working directory or revision' + 'paths:show aliases for remote repositories' + 'pull:pull changes from the specified source' + 'push:push changes to the specified destination' + 'rebase:move changeset (and descendants) to a different branch (RebaseExtension)' + 'recover:roll back an interrupted transaction' + {remove,rm}':remove the specified files on the next commit' + {rename,move,mv}':rename files; equivalent of copy + remove' + 'resolve:redo merges or set/view the merge status of files' + 'revert:restore individual files or directories to an earlier state' + 'rollback:roll back the last transaction (dangerous)' + 'root:print the root (top) of the current working directory' + 'serve:start stand-alone webserver' + {showconfig,debugconfig}':show combined config settings from all hgrc files' + {status,st}':show changed files in the working directory' + {summary,sum}':summarize working directory state' + 'tag:add one or more tags for the current or given revision' + 'tags:list repository tags' + 'tip:show the tip revision' + 'transplant:transplant changesets from another branch (TransplantExtension)' + 'unbundle:apply one or more changegroup files' + {update,up,checkout,co}':update working directory or switch revisions' + 'verify:verify the integrity of the repository' + 'version:output version and copyright information' + # additional help topics + 'config:Configuration Files' + 'dates:Date Formats' + 'patterns:File Name Patterns' + 'environment:Environment Variables' + 'revisions:Specifying Single Revisions' + 'multirevs:Specifying Multiple Revisions' + 'revsets:Specifying Revision Sets' + 'diffs:Diff Formats' + 'merge-tools:Merge Tools' + 'templating:Template Usage' + 'urls:URL Paths' + 'extensions:Using additional features' + 'subrepos:Subrepositories' + 'hgweb:Configuring hgweb' + 'glossary:Glossary' +) + +local expl + +_arguments \ + '(-h --help)'{-h,--help}'[show help]' \ + '*:: :->subcmds' && return 0 + +if (( CURRENT == 1 )); then + _describe -t commands "hg subcommand" _1st_arguments + return +fi + +local -a _global_options + +_global_options=( + '(-R --repository REPO)'{-R,--repository}'[repository root directory or name of overlay bundle file]' + '(--cwd DIR)'--cwd'[change working directory]' + '(-y --noninteractive)'{-y,--noninteractive}'[do not prompt, assume `yes` for any required answers]' + '(-q --quiet)'{-q,--quiet}'[suppress output]' + '(-v --verbose)'{-v,--verbose}'[enable additional output]' + '(--config CONFIG [+])'--config'[set/override config option (use `section.name=value`)]' + '(--debug)'--debug'[enable debugging output]' + '(--debugger)'--debugger'[start debugger]' + '(--encoding ENCODE)'--encoding'[set the charset encoding (default: UTF-8)]' + '(--encodingmode MODE)'--encodingmode'[set the charset encoding mode (default: strict)]' + '(--traceback)'--traceback'[always print a traceback on exception]' + '(--time)'--time'[time how long the command takes]' + '(--profile)'--profile'[print command execution profile]' + '(--version)'--version'[output version information and exit]' + '(-h --help)'{-h,--help}'[display help and exit]' + "*::archieve file:_files -g '(#i)*.*'" +) + +local -a _command_options + +case "$words[1]" in + add) + _command_options=( + '(-I --include PATTERN [+])'{-I,--include}'[include names matching the given patterns]' + '(-X --exclude PATTERN [+])'{-X,--exclude}'[exclude names matching the given patterns]' + '(-S --subrepos)'{-S,--subrepos}'[recurse into subrepositories]' + '(-n --dry-run)'{-n,--dry-run}'[do not perform actions, just print output]' + ) + ;; + addremove) + _command_options=( + '(-s --similarity SIMILARITY)'{-s,--similarity}'[guess renamed files by similarity (0<=s<=100)]' + '(-I --include PATTERN [+])'{-I,--include}'[include names matching the given patterns]' + '(-X --exclude PATTERN [+])'{-X,--exclude}'[exclude names matching the given patterns]' + '(-n --dry-run)'{-n,--dry-run}'[do not perform actions, just print output]' + ) + ;; + annotate|blame) + _command_options=( + '(-r --rev REV)'{-r,--rev}'[annotate the specified revision]' + '(--no-follow)--no-follow[do not follow copies and renames]' + '(-a --text)'{-a,--text}'[treat all files as text]' + '(-u --user)'{-u,--user}'[list the author (long with -v)]' + '(-f --file)'{-f,--file}'[list the filename]' + '(-d --date)'{-d,--date}'[list the date (short with -q)]' + '(-n --number)'{-n,--number}'[list the revision number (default)]' + '(-c --changeset)'{-c,--changeset}'[list the changeset]' + '(-l --line-number)'{-l,--line-number}'[show line number at the first appearance]' + '(-I --include PATTERN [+])'{-I,--include}'[include names matching the given patterns]' + '(-X --exclude PATTERN [+])'{-X,--exclude}'[exclude names matching the given patterns]' + ) + ;; + archive) + _command_options=( + '(--no-decode)--no-decode[do not pass files through decoders]' + '(-p --prefix PREFIX)'{-p,--prefix}'[directory prefix for files in archive]' + '(-r --rev REV)'{-r,--rev}'[revision to distribute]' + '(-t --type TYPE)'{-t,--type}'[type of distribution to create]' + '(-S --subrepos)'{-S,--subrepos}'[recurse into subrepositories]' + '(-I --include PATTERN [+])'{-I,--include}'[include names matching the given patterns]' + '(-X --exclude PATTERN [+])'{-X,--exclude}'[exclude names matching the given patterns]' + ) + ;; + backout) + _command_options=( + '(--merge)--merge[merge with old dirstate parent after backout]' + '(--parent REV)--parent[parent to choose when backing out merge]' + '(-t --tool VALUE)'{-t,--tool}'[specify merge tool]' + '(-r --rev REV)'{-r,--rev}'[revision to backout]' + '(-I --include PATTERN [+])'{-I,--include}'[include names matching the given patterns]' + '(-X --exclude PATTERN [+])'{-X,--exclude}'[exclude names matching the given patterns]' + '(-m --message TEXT)'{-m,--message}'[use text as commit message]' + '(-l --logfile FILE)'{-l,--logfile}'[read commit message from file]' + '(-d --date DATE)'{-d,--date}'[record the specified date as commit date]' + '(-u --user USER)'{-u,--user}'[record the specified user as committer]' + ) + ;; + bisect) + _command_options=( + '(-r --reset)'{-r,--reset}'[reset bisect state]' + '(-g --good)'{-g,--good}'[mark changeset good]' + '(-b --bad)'{-b,--bad}'[mark changeset bad]' + '(-s --skip)'{-s,--skip}'[skip testing changeset]' + '(-c --command CMD)'{-c,--command}'[use command to check changeset state]' + '(-U --noupdate)'{-U,--noupdate}'[do not update to target]' + ) + ;; + bookmarks) + _command_options=( + '(-f --force)'{-f,--force}'[force]' + '(-r --rev REV)'{-r,--rev}'[revision]' + '(-d --delete)'{-d,--delete}'[delete a given bookmark]' + '(-m --rename NAME)'{-m,--rename}'[rename a given bookmark]' + ) + ;; + branch) + _command_options=( + '(-f --force)-f[set branch name even if it shadows an existing branch]' + '(-C --clean)-C[reset branch name to parent branch name]' + ) + ;; + branches) + _command_options=( + '(-a --active)'{-a,--active}'[show only branches that have unmerged heads]' + '(-c --closed)'{-c,--closed}'[show normal and closed branches]' + ) + ;; + bundle) + _command_options=( + '(-f --force)'{-f,--force}'[run even when the destination is unrelated]' + '(-r --rev REV [+])'{-r,--rev}'[a changeset intended to be added to the destination]' + '(-b --branch BRANCH [+])'{-b,--branch}'[a specific branch you would like to bundle]' + '(--base REV [+])--base[a base changeset assumed to be available at the destination]' + '(-a --all)'{-a,--all}'[bundle all changesets in the repository]' + '(-t --type TYPE)'{-t,--type}'[bundle compression type to use (default: bzip2)]' + '(-e --ssh CMD)'{-e,--ssh}'[specify ssh command to use]' + '(--remotecmd CMD)--remotecmd[specify hg command to run on the remote side]' + '(--insecure)--insecure[do not verify server certificate (ignoring web.cacerts config)]' + ) + ;; + cat) + _command_options=( + '(-o --output FORMAT)'{-o,--output}'[print output to file with formatted name]' + '(-r --rev REV)'{-r,--rev}'[print the given revision]' + '(--decode)--decode[apply any matching decode filter]' + '(-I --include PATTERN [+])'{-I,--include}'[include names matching the given patterns]' + '(-X --exclude PATTERN [+])'{-X,--exclude}'[exclude names matching the given patterns]' + ) + ;; + clone) + _command_options=( + '(-U --noupdate)'{-U,--noupdate}'[the clone will include an empty working copy (only a repository)]' + '(-u --updaterev REV)'{-u,--updaterev}'[revision, tag or branch to check out]' + '(-r --rev REV [+])'{-r,--rev}'[include the specified changeset]' + '(-b --branch BRANCH [+])'{-b,--branch}'[clone only the specified branch]' + '(--pull)--pull[use pull protocol to copy metadata]' + '(--uncompressed)--uncompressed[use uncompressed transfer (fast over LAN)]' + '(-e --ssh CMD)'{-e,--ssh}'[specify ssh command to use]' + '(--remotecmd CMD)--remotecmd[specify hg command to run on the remote side]' + '(--insecure)--insecure[do not verify server certificate (ignoring web.cacerts config)]' + ) + ;; + commit|ci) + _command_options=( + '(-A --addremove)'{-A,--addremove}'[mark new/missing files as added/removed before committing]' + '(--close-branch)--close-branch[mark a branch as closed, hiding it from the branch list]' + '(-I --include PATTERN [+])'{-I,--include}'[include names matching the given patterns]' + '(-X --exclude PATTERN [+])'{-X,--exclude}'[exclude names matching the given patterns]' + '(-m --message TEXT)'{-m,--message}'[use text as commit message]' + '(-l --logfile FILE)'{-l,--logfile}'[read commit message from file]' + '(-d --date DATE)'{-d,--date}'[record the specified date as commit date]' + '(-u --user USER)'{-u,--user}'[record the specified user as committer]' + ) + ;; + copy|cp) + _command_options=( + '(-A --after)'{-A,--after}'[record a copy that has already occurred]' + '(-f --force)'{-f,--force}'[forcibly copy over an existing managed file]' + '(-I --include PATTERN [+])'{-I,--include}'[include names matching the given patterns]' + '(-X --exclude PATTERN [+])'{-X,--exclude}'[exclude names matching the given patterns]' + '(-n --dry-run)'{-n,--dry-run}'[do not perform actions, just print output]' + ) + ;; + diff) + _command_options=( + '(-r --rev REV [+])'{-r,--rev}'[revision]' + '(-c --change REV)'{-c,--change}'[change made by revision]' + '(-a --text)'{-a,--text}'[treat all files as text]' + '(-g --git)'{-g,--git}'[use git extended diff format]' + '(--nodates)--nodates[omit dates from diff headers]' + '(-p --show-function)'{-p,--show-function}'[show which function each change is in]' + '(--reverse)--reverse[produce a diff that undoes the changes]' + '(-w --ignore-all-space)'{-w,--ignore-all-space}'[ignore white space when comparing lines]' + '(-b --ignore-space-change)-b[ignore changes in the amount of white space]' + '(-B --ignore-blank-lines)'{-B,--ignore-blank-lines}'[ignore changes whose lines are all blank]' + '(-U --unified NUM)'{-U,--unified}'[number of lines of context to show]' + '(--stat)--stat[output diffstat-style summary of changes]' + '(-I --include PATTERN [+])'{-I,--include}'[include names matching the given patterns]' + '(-X --exclude PATTERN [+])'{-X,--exclude}'[exclude names matching the given patterns]' + '(-S --subrepos)'{-S,--subrepos}'[recurse into subrepositories]' + ) + ;; + export) + _command_options=( + '(-o --output FORMAT)'{-o,--output}'[print output to file with formatted name]' + '(--switch-parent)--switch-parent[diff against the second parent]' + '(-r --rev REV [+])'{-r,--rev}'[revisions to export]' + '(-a --text)'{-a,--text}'[treat all files as text]' + '(-g --git)'{-g,--git}'[use git extended diff format]' + '(--nodates)--nodates[omit dates from diff headers]' + ) + ;; + fetch) + _command_options=( + '(-r --rev REV [+])'{-r,--rev}'[a specific revision you would like to pull]' + '(-e --edit)'{-e,--edit}'[edit commit message]' + '(--switch-parent)--switch-parent[switch parents when merging]' + '(-m --message TEXT)'{-m,--message}'[use text as commit message]' + '(-l --logfile FILE)'{-l,--logfile}'[read commit message from file]' + '(-d --date)'{-d,--date}'[record the specified date as commit date]' + '(-u --user USER)'{-u,--user}'[record the specified user as committer]' + '(-e --ssh CMD)'{-e,--ssh}'[specify ssh command to use]' + '(--remotecmd CMD)--remotecmd[specify hg command to run on the remote side]' + '(--insecure)--insecure[do not verify server certificate (ignoring web.cacerts config)]' + ) + ;; + forget) + _command_options=( + '(-I --include PATTERN [+])'{-I,--include}'[include names matching the given patterns]' + '(-X --exclude PATTERN [+])'{-X,--exclude}'[exclude names matching the given patterns]' + ) + ;; + grep) + _command_options=( + '(-0 --print0)'{-0,--print0}'[end fields with NUL]' + '(--all)--all[print all revisions that match]' + '(-f --follow)'{-f,--follow}'[follow changeset history, or file history across copies and renames]' + '(-i --ignore-case)'{-i,--ignore-case}'[ignore case when matching]' + '(-l --files-with-matches)'{-l,--files-with-matches}'[print only filenames and revisions that match]' + '(-n --line-number)'{-n,--line-number}'[print matching line numbers]' + '(-r --rev REV [+])'{-r,--rev}'[only search files changed within revision range]' + '(-u --user)'{-u,--user}'[list the author (long with -v)]' + '(-d --date)'{-d,--date}'[list the date (short with -q)]' + '(-I --include PATTERN [+])'{-I,--include}'[include names matching the given patterns]' + '(-X --exclude PATTERN [+])'{-X,--exclude}'[exclude names matching the given patterns]' + ) + ;; + heads) + _command_options=( + '(-r --rev STARTREV)'{-r,--rev}'[show only heads which are descendants of STARTREV]' + '(-t --topo)'{-t,--topo}'[show topological heads only]' + '(-c --closed)'{-c,--closed}'[show normal and closed branch heads]' + '(--style STYLE)--style[display using template map file]' + '(--template TEMPLATE)--template[display with template]' + ) + ;; + identify|id) + _command_options=( + '(-r --rev REV)'{-r,--rev}'[identify the specified revision]' + '(-n --num)'{-n,--num}'[show local revision number]' + '(-i --id)'{-i,--id}'[show global revision id]' + '(-b --branch)'{-b,--branch}'[show branch]' + '(-t --tags)'{-t,--tags}'[show tags]' + '(-B --bookmarks)'{-B,--bookmarks}'[show bookmarks]' + ) + ;; + import|patch) + _command_options=( + '(-p --strip NUM)'{-p,--strip}'[directory strip option for patch. This has the same meaning as the corresponding patch option (default: 1)]' + '(-b --base PATH)'{-b,--base}'[base path]' + '(-f --force)'{-f,--force}'[skip check for outstanding uncommitted changes]' + '(--no-commit)--no-commit[do not commit, just update the working directory]' + '(--exact)--exact[apply patch to the nodes from which it was generated]' + '(--import-branch)--import-branch[use any branch information in patch (implied by --exact)]' + '(-m --message TEXT)'{-m,--message}'[use text as commit message]' + '(-l --logfile FILE)'{-l,--logfile}'[read commit message from file]' + '(-d --date DATE)'{-d,--date}'[record the specified date as commit date]' + '(-u --user USER)'{-u,--user}'[record the specified user as committer]' + '(-s --similarity SIMILARITY)'{-s,--similarity}'[guess renamed files by similarity (0<=s<=100)]' + ) + ;; + incoming|in) + _command_options=( + '(-f --force)'{-f,--force}'[run even if remote repository is unrelated]' + '(-n --newest-first)'{-n,--newest-first}'[show newest record first]' + '(--bundle FILE)--bundle[file to store the bundles into]' + '(-r --rev REV [+])'{-r,--rev}'[a remote changeset intended to be added]' + '(-B --bookmarks)'{-B,--bookmarks}'[compare bookmarks]' + '(-b --branch BRANCH [+])'{-b,--branch}'[a specific branch you would like to pull]' + '(-p --patch)'{-p,--patch}'[show patch]' + '(-g --git)'{-g,--git}'[use git extended diff format]' + '(-l --limit NUM)'{-l,--limit}'[limit number of changes displayed]' + '(-M --no-merges)'{-M,--no-merges}'[do not show merges]' + '(--stat)--stat[output diffstat-style summary of changes]' + '(--style STYLE)--style[display using template map file]' + '(--template TEMPLATE)--template[display with template]' + '(-e --ssh CMD)'{-e,--ssh}'[specify ssh command to use]' + '(--remotecmd CMD)--remotecmd[specify hg command to run on the remote side]' + '(--insecure)--insecure[do not verify server certificate (ignoring web.cacerts config)]' + '(-S --subrepos)'{-S,--subrepos}'[recurse into subrepositories]' + ) + ;; + init) + _command_options=( + '(-e --ssh CMD)'{-e,--ssh}'[specify ssh command to use]' + '(--remotecmd CMD)--remotecmd[specify hg command to run on the remote side]' + '(--insecure)--insecure[do not verify server certificate (ignoring web.cacerts config)]' + ) + ;; + locate) + _command_options=( + '(-r --rev REV)'{-r,--rev}'[search the repository as it is in REV]' + '(-0 --print0)'{-0,--print0}'[end filenames with NUL, for use with xargs]' + '(-f --fullpath)'{-f,--fullpath}'[print complete paths from the filesystem root]' + '(-I --include PATTERN [+])'{-I,--include}'[include names matching the given patterns]' + '(-X --exclude PATTERN [+])'{-X,--exclude}'[exclude names matching the given patterns]' + ) + ;; + log|history) + _command_options=( + '(-f --follow)'{-f,--follow}'[follow changeset history, or file history across copies and renames]' + '(--follow-first)--follow-first[only follow the first parent of merge changesets]' + '(-d --date DATE)'{-d,--date}'[show revisions matching date spec]' + '(-C --copies)'{-C,--copies}'[show copied files]' + '(-k --keyword TEXT [+])'{-k,--keyword}'[do case-insensitive search for a given text]' + '(-r --rev REV [+])'{-r,--rev}'[show the specified revision or range]' + '(--removed)--removed[include revisions where files were removed]' + '(-m --only-merges)'{-m,--only-merges}'[show only merges]' + '(-u --user USER [+])'{-u,--user}'[revisions committed by user]' + '(-b --branch BRANCH [+])'{-b,--branch}'[show changesets within the given named branch]' + '(-P --prune REV [+])'{-P,--prune}'[do not display revision or any of its ancestors]' + '(-p --patch)'{-p,--patch}'[show patch]' + '(-g --git)'{-g,--git}'[use git extended diff format]' + '(-l --limit NUM)'{-l,--limit}'[limit number of changes displayed]' + '(-M --no-merges)'{-M,--no-merges}'[do not show merges]' + '(--stat)--stat[output diffstat-style summary of changes]' + '(--style STYLE)--style[display using template map file]' + '(--template TEMPLATE)--template[display with template]' + '(-I --include PATTERN [+])'{-I,--include}'[include names matching the given patterns]' + '(-X --exclude PATTERN [+])'{-X,--exclude}'[exclude names matching the given patterns]' + ) + ;; + manifest) + _command_options=( + '(-r --rev REV)'{-r,--rev}'[revision to display]' + ) + ;; + merge) + _command_options=( + '(-f --force)'{-f,--force}'[force a merge with outstanding changes]' + '(-t --tool VALUE)'{-t,--tool}'[specify merge tool]' + '(-r --rev REV)'{-r,--rev}'[revision to merge]' + '(-P --preview)'{-P,--preview}'[review revisions to merge (no merge is performed)]' + ) + ;; + outgoing|out) + _command_options=( + '(-f --force)'{-f,--force}'[run even when the destination is unrelated]' + '(-r --rev REV [+])'{-r,--rev}'[a changeset intended to be included in the destination]' + '(-n --newest-first)'{-n,--newest-first}'[show newest record first]' + '(-B --bookmarks)'{-B,--bookmarks}'[compare bookmarks]' + '(-b --branch BRANCH [+])'{-b,--branch}'[a specific branch you would like to push]' + '(-p --patch)'{-p,--patch}'[show patch]' + '(-g --git)'{-g,--git}'[use git extended diff format]' + '(-l --limit NUM)'{-l,--limit}'[limit number of changes displayed]' + '(-M --no-merges)'{-M,--no-merges}'[do not show merges]' + '(--stat)--stat[output diffstat-style summary of changes]' + '(--style STYLE)--style[display using template map file]' + '(--template TEMPLATE)--template[display with template]' + '(-e --ssh CMD)'{-e,--ssh}'[specify ssh command to use]' + '(--remotecmd CMD)--remotecmd[specify hg command to run on the remote side]' + '(--insecure)--insecure[do not verify server certificate (ignoring web.cacerts config)]' + '(-S --subrepos)'{-S,--subrepos}'[recurse into subrepositories]' + ) + ;; + parents) + _command_options=( + '(-r --rev REV)'{-r,--rev}'[show parents of the specified revision]' + '(--style STYLE)--style[display using template map file]' + '(--template TEMPLATE)--template[display with template]' + ) + ;; + pull) + _command_options=( + '(-u --update)'{-u,--update}'[update to new branch head if changesets were pulled]' + '(-f --force)'{-f,--force}'[run even when remote repository is unrelated]' + '(-r --rev REV [+])'{-r,--rev}'[a remote changeset intended to be added]' + '(-B --bookmark BOOKMARK [+])'{-B,--bookmark}'[bookmark to pull]' + '(-b --branch BRANCH [+])'{-b,--branch}'[a specific branch you would like to pull]' + '(-e --ssh CMD)'{-e,--ssh}'[specify ssh command to use]' + '(--remotecmd CMD)--remotecmd[specify hg command to run on the remote side]' + '(--insecure)--insecure[do not verify server certificate (ignoring web.cacerts config)]' + ) + ;; + push) + _command_options=( + '(-f --force)'{-f,--force}'[force push]' + '(-r --rev REV [+])'{-r,--rev}'[a changeset intended to be included in the destination]' + '(-B --bookmark BOOKMARK [+])'{-B,--bookmark}'[bookmark to push]' + '(-b --branch BRANCH [+])'{-b,--branch}'[a specific branch you would like to push]' + '(--new-branch)--new-branch[allow pushing a new branch]' + '(-e --ssh CMD)'{-e,--ssh}'[specify ssh command to use]' + '(--remotecmd CMD)--remotecmd[specify hg command to run on the remote side]' + '(--insecure)--insecure[do not verify server certificate (ignoring web.cacerts config)]' + ) + ;; + rebase) + _command_options( + '(-s --source REV)'{-s,--source}'[rebase from the specified changeset]' + '(--base REV)--base[rebase from the base of the specified changeset (up to greatest common ancestor of base and dest)]' + '(-d --dest REV)'{-d,--dest}'[rebase onto the specified changeset]' + '(--collapse)--collapse[collapse the rebased changesets]' + '(--keep)--keep[keep original changesets]' + '(--keepbranches)--keepbranches[keep original branch names]' + '(-detach)-detach[force detaching of source from its original branch]' + '(-c --continue)'{-c,--continue}'[continue an interrupted rebase]' + '(-a --abort){-a,--abort}[abort an interrupted rebase]' + '(--style STYLE)--style[display using template map file]' + '(--template TEMPLATE)--template[display with template]' + ) + ;; + remove|rm) + _command_options=( + '(-A --after)'{-A,--after}'[record delete for missing files]' + '(-f --force)'{-f,--force}'[remove (and delete) file even if added or modified]' + '(-I --include PATTERN [+])'{-I,--include}'[include names matching the given patterns]' + '(-X --exclude PATTERN [+])'{-X,--exclude}'[exclude names matching the given patterns]' + ) + ;; + rename|move|mv) + _command_options=( + '(-A --after)'{-A,--after}'[record a rename that has already occurred]' + '(-f --force)'{-f,--force}'[forcibly copy over an existing managed file]' + '(-I --include PATTERN [+])'{-I,--include}'[include names matching the given patterns]' + '(-X --exclude PATTERN [+])'{-X,--exclude}'[exclude names matching the given patterns]' + '(-n --dry-run)'{-n,--dry-run}'[do not perform actions, just print output]' + ) + ;; + resolve) + _command_options=( + '(-a --all)'{-a,--all}'[select all unresolved files]' + '(-l --list)'{-l,--list}'[list state of files needing merge]' + '(-m --mark)'{-m,--mark}'[mark files as resolved]' + '(-u --unmark)'{-u,--unmark}'[mark files as unresolved]' + '(-t --tool VALUE)'{-t,--tool}'[specify merge tool]' + '(-n --no-status)'{-n,--no-status}'[hide status prefix]' + '(-I --include PATTERN [+])'{-I,--include}'[include names matching the given patterns]' + '(-X --exclude PATTERN [+])'{-X,--exclude}'[exclude names matching the given patterns]' + ) + ;; + revert) + _command_options=( + '(-a --all)'{-a,--all}'[revert all changes when no arguments given]' + '(-d --date DATE)'{-d,--date}'[tipmost revision matching date]' + '(-r --rev REV)'{-r,--rev}'[revert to the specified revision]' + '(--no-backup)--no-backup[do not save backup copies of files]' + '(-I --include PATTERN [+])'{-I,--include}'[include names matching the given patterns]' + '(-X --exclude PATTERN [+])'{-X,--exclude}'[exclude names matching the given patterns]' + '(-n --dry-run)'{-n,--dry-run}'[do not perform actions, just print output]' + ) + ;; + rollback) + _command_options=( + '(-n --dry-run)'{-n,--dry-run}'[do not perform actions, just print output]' + ) + ;; + serve) + _command_options=( + '(-A --accesslog FILE)'{-A,--accesslog}'[name of access log file to write to]' + '(-d --daemon)'{-d,--daemon}'[run server in background]' + '(--daemon-pipefds NUM)--daemon-pipefds[used internally by daemon mode]' + '(-E --errorlog FILE)'{-E,--errorlog}'[name of error log file to write to]' + '(-p --port PORT)'{-p,--port}'[port to listen on (default: 8000)]' + '(-a --address ADDR)'{-a,--address}'[address to listen on (default: all interfaces)]' + '(--prefix PREFIX)--prefix[prefix path to serve from (default: server root)]' + '(-n --name NAME)'{-n,--name}'[name to show in web pages (default: working directory)]' + '(--web-conf FILE)--web-conf[name of the hgweb config file (see "hg help hgweb")]' + '(--pid-file FILE)--pid-file[name of file to write process ID to]' + '(--stdio)--stdio[for remote clients]' + '(-t --templates TEMPLATE)'{-t,--templates}'[web templates to use]' + '(--style STYLE)--style[template style to use]' + '(-6 --ipv6)'{-6,--ipv6}'[use IPv6 in addition to IPv4]' + '(--certificate FILE)--certificate[SSL certificate file]' + ) + ;; + showconfig|debugconfig) + _command_options=( + '(-u -untrusted)'{-u,-untrusted}'[show untrusted configuration options]' + ) + ;; + status|st) + _command_options=( + '(-A --all)'{-A,--all}'[show status of all files]' + '(-m --modified)'{-m,--modified}'[show only modified files]' + '(-a --added)'{-a,--added}'[show only added files]' + '(-r --removed)'{-r,--removed}'[show only removed files]' + '(-d --deleted)'{-d,--deleted}'[show only deleted (but tracked) files]' + '(-c --clean)'{-c,--clean}'[show only files without changes]' + '(-u --unknown)'{-u,--unknown}'[show only unknown (not tracked) files]' + '(-i --ignored)'{-i,--ignored}'[show only ignored files]' + '(-n --no-status)'{-n,--no-status}'[hide status prefix]' + '(-C --copies)'{-C,--copies}'[show source of copied files]' + '(-0 --print0)'{-0,--print0}'[end filenames with NUL, for use with xargs]' + '(--rev REV [+])--rev[show difference from revision]' + '(--change REV)--change[list the changed files of a revision]' + '(-I --include PATTERN [+])'{-I,--include}'[include names matching the given patterns]' + '(-X --exclude PATTERN [+])'{-X,--exclude}'[exclude names matching the given patterns]' + '(-S --subrepos)'{-S,--subrepos}'[recurse into subrepositories]' + ) + ;; + summary|sum) + _command_options=( + '(--remote)--remote[check for push and pull]' + ) + ;; + tag) + _command_options=( + '(-f --force)'{-f,--force}'[force tag]' + '(-l --local)'{-l,--local}'[make the tag local]' + '(-r --rev REV)'{-r,--rev}'[revision to tag]' + '(--remove)--remove[remove a tag]' + '(-e --edit)'{-e,--edit}'[edit commit message]' + '(-m --message TEXT)'{-m,--message}'[use as commit message]' + '(-d --date DATE)'{-d,--date}'[record the specified date as commit date]' + '(-u --user USER)'{-u,--user}'[record the specified user as committer]' + ) + ;; + transplant) + _command_options=( + '(-s --source REPO)'{-s,--source}'[pull patches from REPO]' + '(-b --branch BRANCH [+])'{-b,--branch}'[pull patches from branch BRANCH]' + '(-a --all)'{-a,--all}'[pull all changesets up to BRANCH]' + '(-p --prune REV [+])'{-p,--prune}'[skip over REV]' + '(-m --merge REV [+])'{-m,--merge}'[merge at REV]' + '(--log)--log[append transplant info to log message]' + '(-c --continue)'{-c,--continue}'[continue last transplant session after repair]' + '(--filter CMD)--filter[filter changesets through command]' + ) + ;; + tip) + _command_options=( + '(-p --patch)'{-p,--patch}'[show patch]' + '(-g --git)'{-g,--git}'[use git extended diff format]' + '(--style STYLE)--style[display using template map file]' + '(--template TEMPLATE)--template[display with template]' + ) + ;; + unbundle) + _command_options=( + '(-u --update)'{-u,--update}'[update to new branch head if changesets were unbundled]' + ) + ;; + update|up|checkout|co) + _command_options=( + '(-C --clean)'{-C,--clean}'[discard uncommitted changes (no backup)]' + '(-c --check)'{-c,--check}'[update across branches if no uncommitted changes]' + '(-d --date DATE)'{-d,--date}'[tipmost revision matching date]' + '(-r --rev REV)'{-r,--rev}'[revision]' + ) + ;; + *) +esac + +_arguments \ + $_global_options \ + $_command_options From f0e52df6860d44d1f8cea1260efd30e792f80e4f Mon Sep 17 00:00:00 2001 From: Celestino Gomes Date: Fri, 1 Apr 2016 16:37:09 -0300 Subject: [PATCH 08/11] There is already an _hg completion file for mercurial. See at [official repo](https://sourceforge.net/p/zsh/code/ci/master/tree/Completion/Unix/Command/_hg) --- plugins/mercurial/_mercurial | 638 ----------------------------------- 1 file changed, 638 deletions(-) delete mode 100644 plugins/mercurial/_mercurial diff --git a/plugins/mercurial/_mercurial b/plugins/mercurial/_mercurial deleted file mode 100644 index 329249b46..000000000 --- a/plugins/mercurial/_mercurial +++ /dev/null @@ -1,638 +0,0 @@ -#compdef hg -#autoload - -local -a _1st_arguments - -_1st_arguments=( - 'add:add the specified files on the next commit' - 'addremove:add all new files, delete all missing files' - {annotate,blame}':show changeset information by line for each file' - 'archive:create an unversioned archive of a repository revision' - 'backout:reverse effect of earlier changeset' - 'bisect:subdivision search of changesets' - 'bookmarks:track a line of development with movable markers' - 'branch:set or show the current branch name' - 'branches:list repository named branches' - 'bundle:create a changegroup file' - 'cat:output the current or given revision of files' - 'clone:make a copy of an existing repository' - {commit,ci}':commit the specified files or all outstanding changes' - {copy,cp}':mark files as copied for the next commit' - 'diff:diff repository (or selected files)' - 'export:dump the header and diffs for one or more changesets' - 'fetch:pull changes from a remote repository, merge new changes if needed. (FetchExtension)' - 'forget:forget the specified files on the next commit' - 'grep:search for a pattern in specified files and revisions' - 'heads:show current repository heads or show branch heads' - 'help:show help for a given topic or a help overview' - {identify,id}:'identify the working copy or specified revision' - {import,patch}':import an ordered set of patches' - {incoming,in}':show new changesets found in source' - 'init:create a new repository in the given directory' - 'locate:locate files matching specific patterns' - {log,history}':show revision history of entire repository or files' - 'manifest:output the current or given revision of the project manifest' - 'merge:merge working directory with another revision' - {outgoing,out}':show changesets not found in the destination' - 'parents:show the parents of the working directory or revision' - 'paths:show aliases for remote repositories' - 'pull:pull changes from the specified source' - 'push:push changes to the specified destination' - 'rebase:move changeset (and descendants) to a different branch (RebaseExtension)' - 'recover:roll back an interrupted transaction' - {remove,rm}':remove the specified files on the next commit' - {rename,move,mv}':rename files; equivalent of copy + remove' - 'resolve:redo merges or set/view the merge status of files' - 'revert:restore individual files or directories to an earlier state' - 'rollback:roll back the last transaction (dangerous)' - 'root:print the root (top) of the current working directory' - 'serve:start stand-alone webserver' - {showconfig,debugconfig}':show combined config settings from all hgrc files' - {status,st}':show changed files in the working directory' - {summary,sum}':summarize working directory state' - 'tag:add one or more tags for the current or given revision' - 'tags:list repository tags' - 'tip:show the tip revision' - 'transplant:transplant changesets from another branch (TransplantExtension)' - 'unbundle:apply one or more changegroup files' - {update,up,checkout,co}':update working directory or switch revisions' - 'verify:verify the integrity of the repository' - 'version:output version and copyright information' - # additional help topics - 'config:Configuration Files' - 'dates:Date Formats' - 'patterns:File Name Patterns' - 'environment:Environment Variables' - 'revisions:Specifying Single Revisions' - 'multirevs:Specifying Multiple Revisions' - 'revsets:Specifying Revision Sets' - 'diffs:Diff Formats' - 'merge-tools:Merge Tools' - 'templating:Template Usage' - 'urls:URL Paths' - 'extensions:Using additional features' - 'subrepos:Subrepositories' - 'hgweb:Configuring hgweb' - 'glossary:Glossary' -) - -local expl - -_arguments \ - '(-h --help)'{-h,--help}'[show help]' \ - '*:: :->subcmds' && return 0 - -if (( CURRENT == 1 )); then - _describe -t commands "hg subcommand" _1st_arguments - return -fi - -local -a _global_options - -_global_options=( - '(-R --repository REPO)'{-R,--repository}'[repository root directory or name of overlay bundle file]' - '(--cwd DIR)'--cwd'[change working directory]' - '(-y --noninteractive)'{-y,--noninteractive}'[do not prompt, assume `yes` for any required answers]' - '(-q --quiet)'{-q,--quiet}'[suppress output]' - '(-v --verbose)'{-v,--verbose}'[enable additional output]' - '(--config CONFIG [+])'--config'[set/override config option (use `section.name=value`)]' - '(--debug)'--debug'[enable debugging output]' - '(--debugger)'--debugger'[start debugger]' - '(--encoding ENCODE)'--encoding'[set the charset encoding (default: UTF-8)]' - '(--encodingmode MODE)'--encodingmode'[set the charset encoding mode (default: strict)]' - '(--traceback)'--traceback'[always print a traceback on exception]' - '(--time)'--time'[time how long the command takes]' - '(--profile)'--profile'[print command execution profile]' - '(--version)'--version'[output version information and exit]' - '(-h --help)'{-h,--help}'[display help and exit]' - "*::archieve file:_files -g '(#i)*.*'" -) - -local -a _command_options - -case "$words[1]" in - add) - _command_options=( - '(-I --include PATTERN [+])'{-I,--include}'[include names matching the given patterns]' - '(-X --exclude PATTERN [+])'{-X,--exclude}'[exclude names matching the given patterns]' - '(-S --subrepos)'{-S,--subrepos}'[recurse into subrepositories]' - '(-n --dry-run)'{-n,--dry-run}'[do not perform actions, just print output]' - ) - ;; - addremove) - _command_options=( - '(-s --similarity SIMILARITY)'{-s,--similarity}'[guess renamed files by similarity (0<=s<=100)]' - '(-I --include PATTERN [+])'{-I,--include}'[include names matching the given patterns]' - '(-X --exclude PATTERN [+])'{-X,--exclude}'[exclude names matching the given patterns]' - '(-n --dry-run)'{-n,--dry-run}'[do not perform actions, just print output]' - ) - ;; - annotate|blame) - _command_options=( - '(-r --rev REV)'{-r,--rev}'[annotate the specified revision]' - '(--no-follow)--no-follow[do not follow copies and renames]' - '(-a --text)'{-a,--text}'[treat all files as text]' - '(-u --user)'{-u,--user}'[list the author (long with -v)]' - '(-f --file)'{-f,--file}'[list the filename]' - '(-d --date)'{-d,--date}'[list the date (short with -q)]' - '(-n --number)'{-n,--number}'[list the revision number (default)]' - '(-c --changeset)'{-c,--changeset}'[list the changeset]' - '(-l --line-number)'{-l,--line-number}'[show line number at the first appearance]' - '(-I --include PATTERN [+])'{-I,--include}'[include names matching the given patterns]' - '(-X --exclude PATTERN [+])'{-X,--exclude}'[exclude names matching the given patterns]' - ) - ;; - archive) - _command_options=( - '(--no-decode)--no-decode[do not pass files through decoders]' - '(-p --prefix PREFIX)'{-p,--prefix}'[directory prefix for files in archive]' - '(-r --rev REV)'{-r,--rev}'[revision to distribute]' - '(-t --type TYPE)'{-t,--type}'[type of distribution to create]' - '(-S --subrepos)'{-S,--subrepos}'[recurse into subrepositories]' - '(-I --include PATTERN [+])'{-I,--include}'[include names matching the given patterns]' - '(-X --exclude PATTERN [+])'{-X,--exclude}'[exclude names matching the given patterns]' - ) - ;; - backout) - _command_options=( - '(--merge)--merge[merge with old dirstate parent after backout]' - '(--parent REV)--parent[parent to choose when backing out merge]' - '(-t --tool VALUE)'{-t,--tool}'[specify merge tool]' - '(-r --rev REV)'{-r,--rev}'[revision to backout]' - '(-I --include PATTERN [+])'{-I,--include}'[include names matching the given patterns]' - '(-X --exclude PATTERN [+])'{-X,--exclude}'[exclude names matching the given patterns]' - '(-m --message TEXT)'{-m,--message}'[use text as commit message]' - '(-l --logfile FILE)'{-l,--logfile}'[read commit message from file]' - '(-d --date DATE)'{-d,--date}'[record the specified date as commit date]' - '(-u --user USER)'{-u,--user}'[record the specified user as committer]' - ) - ;; - bisect) - _command_options=( - '(-r --reset)'{-r,--reset}'[reset bisect state]' - '(-g --good)'{-g,--good}'[mark changeset good]' - '(-b --bad)'{-b,--bad}'[mark changeset bad]' - '(-s --skip)'{-s,--skip}'[skip testing changeset]' - '(-c --command CMD)'{-c,--command}'[use command to check changeset state]' - '(-U --noupdate)'{-U,--noupdate}'[do not update to target]' - ) - ;; - bookmarks) - _command_options=( - '(-f --force)'{-f,--force}'[force]' - '(-r --rev REV)'{-r,--rev}'[revision]' - '(-d --delete)'{-d,--delete}'[delete a given bookmark]' - '(-m --rename NAME)'{-m,--rename}'[rename a given bookmark]' - ) - ;; - branch) - _command_options=( - '(-f --force)-f[set branch name even if it shadows an existing branch]' - '(-C --clean)-C[reset branch name to parent branch name]' - ) - ;; - branches) - _command_options=( - '(-a --active)'{-a,--active}'[show only branches that have unmerged heads]' - '(-c --closed)'{-c,--closed}'[show normal and closed branches]' - ) - ;; - bundle) - _command_options=( - '(-f --force)'{-f,--force}'[run even when the destination is unrelated]' - '(-r --rev REV [+])'{-r,--rev}'[a changeset intended to be added to the destination]' - '(-b --branch BRANCH [+])'{-b,--branch}'[a specific branch you would like to bundle]' - '(--base REV [+])--base[a base changeset assumed to be available at the destination]' - '(-a --all)'{-a,--all}'[bundle all changesets in the repository]' - '(-t --type TYPE)'{-t,--type}'[bundle compression type to use (default: bzip2)]' - '(-e --ssh CMD)'{-e,--ssh}'[specify ssh command to use]' - '(--remotecmd CMD)--remotecmd[specify hg command to run on the remote side]' - '(--insecure)--insecure[do not verify server certificate (ignoring web.cacerts config)]' - ) - ;; - cat) - _command_options=( - '(-o --output FORMAT)'{-o,--output}'[print output to file with formatted name]' - '(-r --rev REV)'{-r,--rev}'[print the given revision]' - '(--decode)--decode[apply any matching decode filter]' - '(-I --include PATTERN [+])'{-I,--include}'[include names matching the given patterns]' - '(-X --exclude PATTERN [+])'{-X,--exclude}'[exclude names matching the given patterns]' - ) - ;; - clone) - _command_options=( - '(-U --noupdate)'{-U,--noupdate}'[the clone will include an empty working copy (only a repository)]' - '(-u --updaterev REV)'{-u,--updaterev}'[revision, tag or branch to check out]' - '(-r --rev REV [+])'{-r,--rev}'[include the specified changeset]' - '(-b --branch BRANCH [+])'{-b,--branch}'[clone only the specified branch]' - '(--pull)--pull[use pull protocol to copy metadata]' - '(--uncompressed)--uncompressed[use uncompressed transfer (fast over LAN)]' - '(-e --ssh CMD)'{-e,--ssh}'[specify ssh command to use]' - '(--remotecmd CMD)--remotecmd[specify hg command to run on the remote side]' - '(--insecure)--insecure[do not verify server certificate (ignoring web.cacerts config)]' - ) - ;; - commit|ci) - _command_options=( - '(-A --addremove)'{-A,--addremove}'[mark new/missing files as added/removed before committing]' - '(--close-branch)--close-branch[mark a branch as closed, hiding it from the branch list]' - '(-I --include PATTERN [+])'{-I,--include}'[include names matching the given patterns]' - '(-X --exclude PATTERN [+])'{-X,--exclude}'[exclude names matching the given patterns]' - '(-m --message TEXT)'{-m,--message}'[use text as commit message]' - '(-l --logfile FILE)'{-l,--logfile}'[read commit message from file]' - '(-d --date DATE)'{-d,--date}'[record the specified date as commit date]' - '(-u --user USER)'{-u,--user}'[record the specified user as committer]' - ) - ;; - copy|cp) - _command_options=( - '(-A --after)'{-A,--after}'[record a copy that has already occurred]' - '(-f --force)'{-f,--force}'[forcibly copy over an existing managed file]' - '(-I --include PATTERN [+])'{-I,--include}'[include names matching the given patterns]' - '(-X --exclude PATTERN [+])'{-X,--exclude}'[exclude names matching the given patterns]' - '(-n --dry-run)'{-n,--dry-run}'[do not perform actions, just print output]' - ) - ;; - diff) - _command_options=( - '(-r --rev REV [+])'{-r,--rev}'[revision]' - '(-c --change REV)'{-c,--change}'[change made by revision]' - '(-a --text)'{-a,--text}'[treat all files as text]' - '(-g --git)'{-g,--git}'[use git extended diff format]' - '(--nodates)--nodates[omit dates from diff headers]' - '(-p --show-function)'{-p,--show-function}'[show which function each change is in]' - '(--reverse)--reverse[produce a diff that undoes the changes]' - '(-w --ignore-all-space)'{-w,--ignore-all-space}'[ignore white space when comparing lines]' - '(-b --ignore-space-change)-b[ignore changes in the amount of white space]' - '(-B --ignore-blank-lines)'{-B,--ignore-blank-lines}'[ignore changes whose lines are all blank]' - '(-U --unified NUM)'{-U,--unified}'[number of lines of context to show]' - '(--stat)--stat[output diffstat-style summary of changes]' - '(-I --include PATTERN [+])'{-I,--include}'[include names matching the given patterns]' - '(-X --exclude PATTERN [+])'{-X,--exclude}'[exclude names matching the given patterns]' - '(-S --subrepos)'{-S,--subrepos}'[recurse into subrepositories]' - ) - ;; - export) - _command_options=( - '(-o --output FORMAT)'{-o,--output}'[print output to file with formatted name]' - '(--switch-parent)--switch-parent[diff against the second parent]' - '(-r --rev REV [+])'{-r,--rev}'[revisions to export]' - '(-a --text)'{-a,--text}'[treat all files as text]' - '(-g --git)'{-g,--git}'[use git extended diff format]' - '(--nodates)--nodates[omit dates from diff headers]' - ) - ;; - fetch) - _command_options=( - '(-r --rev REV [+])'{-r,--rev}'[a specific revision you would like to pull]' - '(-e --edit)'{-e,--edit}'[edit commit message]' - '(--switch-parent)--switch-parent[switch parents when merging]' - '(-m --message TEXT)'{-m,--message}'[use text as commit message]' - '(-l --logfile FILE)'{-l,--logfile}'[read commit message from file]' - '(-d --date)'{-d,--date}'[record the specified date as commit date]' - '(-u --user USER)'{-u,--user}'[record the specified user as committer]' - '(-e --ssh CMD)'{-e,--ssh}'[specify ssh command to use]' - '(--remotecmd CMD)--remotecmd[specify hg command to run on the remote side]' - '(--insecure)--insecure[do not verify server certificate (ignoring web.cacerts config)]' - ) - ;; - forget) - _command_options=( - '(-I --include PATTERN [+])'{-I,--include}'[include names matching the given patterns]' - '(-X --exclude PATTERN [+])'{-X,--exclude}'[exclude names matching the given patterns]' - ) - ;; - grep) - _command_options=( - '(-0 --print0)'{-0,--print0}'[end fields with NUL]' - '(--all)--all[print all revisions that match]' - '(-f --follow)'{-f,--follow}'[follow changeset history, or file history across copies and renames]' - '(-i --ignore-case)'{-i,--ignore-case}'[ignore case when matching]' - '(-l --files-with-matches)'{-l,--files-with-matches}'[print only filenames and revisions that match]' - '(-n --line-number)'{-n,--line-number}'[print matching line numbers]' - '(-r --rev REV [+])'{-r,--rev}'[only search files changed within revision range]' - '(-u --user)'{-u,--user}'[list the author (long with -v)]' - '(-d --date)'{-d,--date}'[list the date (short with -q)]' - '(-I --include PATTERN [+])'{-I,--include}'[include names matching the given patterns]' - '(-X --exclude PATTERN [+])'{-X,--exclude}'[exclude names matching the given patterns]' - ) - ;; - heads) - _command_options=( - '(-r --rev STARTREV)'{-r,--rev}'[show only heads which are descendants of STARTREV]' - '(-t --topo)'{-t,--topo}'[show topological heads only]' - '(-c --closed)'{-c,--closed}'[show normal and closed branch heads]' - '(--style STYLE)--style[display using template map file]' - '(--template TEMPLATE)--template[display with template]' - ) - ;; - identify|id) - _command_options=( - '(-r --rev REV)'{-r,--rev}'[identify the specified revision]' - '(-n --num)'{-n,--num}'[show local revision number]' - '(-i --id)'{-i,--id}'[show global revision id]' - '(-b --branch)'{-b,--branch}'[show branch]' - '(-t --tags)'{-t,--tags}'[show tags]' - '(-B --bookmarks)'{-B,--bookmarks}'[show bookmarks]' - ) - ;; - import|patch) - _command_options=( - '(-p --strip NUM)'{-p,--strip}'[directory strip option for patch. This has the same meaning as the corresponding patch option (default: 1)]' - '(-b --base PATH)'{-b,--base}'[base path]' - '(-f --force)'{-f,--force}'[skip check for outstanding uncommitted changes]' - '(--no-commit)--no-commit[do not commit, just update the working directory]' - '(--exact)--exact[apply patch to the nodes from which it was generated]' - '(--import-branch)--import-branch[use any branch information in patch (implied by --exact)]' - '(-m --message TEXT)'{-m,--message}'[use text as commit message]' - '(-l --logfile FILE)'{-l,--logfile}'[read commit message from file]' - '(-d --date DATE)'{-d,--date}'[record the specified date as commit date]' - '(-u --user USER)'{-u,--user}'[record the specified user as committer]' - '(-s --similarity SIMILARITY)'{-s,--similarity}'[guess renamed files by similarity (0<=s<=100)]' - ) - ;; - incoming|in) - _command_options=( - '(-f --force)'{-f,--force}'[run even if remote repository is unrelated]' - '(-n --newest-first)'{-n,--newest-first}'[show newest record first]' - '(--bundle FILE)--bundle[file to store the bundles into]' - '(-r --rev REV [+])'{-r,--rev}'[a remote changeset intended to be added]' - '(-B --bookmarks)'{-B,--bookmarks}'[compare bookmarks]' - '(-b --branch BRANCH [+])'{-b,--branch}'[a specific branch you would like to pull]' - '(-p --patch)'{-p,--patch}'[show patch]' - '(-g --git)'{-g,--git}'[use git extended diff format]' - '(-l --limit NUM)'{-l,--limit}'[limit number of changes displayed]' - '(-M --no-merges)'{-M,--no-merges}'[do not show merges]' - '(--stat)--stat[output diffstat-style summary of changes]' - '(--style STYLE)--style[display using template map file]' - '(--template TEMPLATE)--template[display with template]' - '(-e --ssh CMD)'{-e,--ssh}'[specify ssh command to use]' - '(--remotecmd CMD)--remotecmd[specify hg command to run on the remote side]' - '(--insecure)--insecure[do not verify server certificate (ignoring web.cacerts config)]' - '(-S --subrepos)'{-S,--subrepos}'[recurse into subrepositories]' - ) - ;; - init) - _command_options=( - '(-e --ssh CMD)'{-e,--ssh}'[specify ssh command to use]' - '(--remotecmd CMD)--remotecmd[specify hg command to run on the remote side]' - '(--insecure)--insecure[do not verify server certificate (ignoring web.cacerts config)]' - ) - ;; - locate) - _command_options=( - '(-r --rev REV)'{-r,--rev}'[search the repository as it is in REV]' - '(-0 --print0)'{-0,--print0}'[end filenames with NUL, for use with xargs]' - '(-f --fullpath)'{-f,--fullpath}'[print complete paths from the filesystem root]' - '(-I --include PATTERN [+])'{-I,--include}'[include names matching the given patterns]' - '(-X --exclude PATTERN [+])'{-X,--exclude}'[exclude names matching the given patterns]' - ) - ;; - log|history) - _command_options=( - '(-f --follow)'{-f,--follow}'[follow changeset history, or file history across copies and renames]' - '(--follow-first)--follow-first[only follow the first parent of merge changesets]' - '(-d --date DATE)'{-d,--date}'[show revisions matching date spec]' - '(-C --copies)'{-C,--copies}'[show copied files]' - '(-k --keyword TEXT [+])'{-k,--keyword}'[do case-insensitive search for a given text]' - '(-r --rev REV [+])'{-r,--rev}'[show the specified revision or range]' - '(--removed)--removed[include revisions where files were removed]' - '(-m --only-merges)'{-m,--only-merges}'[show only merges]' - '(-u --user USER [+])'{-u,--user}'[revisions committed by user]' - '(-b --branch BRANCH [+])'{-b,--branch}'[show changesets within the given named branch]' - '(-P --prune REV [+])'{-P,--prune}'[do not display revision or any of its ancestors]' - '(-p --patch)'{-p,--patch}'[show patch]' - '(-g --git)'{-g,--git}'[use git extended diff format]' - '(-l --limit NUM)'{-l,--limit}'[limit number of changes displayed]' - '(-M --no-merges)'{-M,--no-merges}'[do not show merges]' - '(--stat)--stat[output diffstat-style summary of changes]' - '(--style STYLE)--style[display using template map file]' - '(--template TEMPLATE)--template[display with template]' - '(-I --include PATTERN [+])'{-I,--include}'[include names matching the given patterns]' - '(-X --exclude PATTERN [+])'{-X,--exclude}'[exclude names matching the given patterns]' - ) - ;; - manifest) - _command_options=( - '(-r --rev REV)'{-r,--rev}'[revision to display]' - ) - ;; - merge) - _command_options=( - '(-f --force)'{-f,--force}'[force a merge with outstanding changes]' - '(-t --tool VALUE)'{-t,--tool}'[specify merge tool]' - '(-r --rev REV)'{-r,--rev}'[revision to merge]' - '(-P --preview)'{-P,--preview}'[review revisions to merge (no merge is performed)]' - ) - ;; - outgoing|out) - _command_options=( - '(-f --force)'{-f,--force}'[run even when the destination is unrelated]' - '(-r --rev REV [+])'{-r,--rev}'[a changeset intended to be included in the destination]' - '(-n --newest-first)'{-n,--newest-first}'[show newest record first]' - '(-B --bookmarks)'{-B,--bookmarks}'[compare bookmarks]' - '(-b --branch BRANCH [+])'{-b,--branch}'[a specific branch you would like to push]' - '(-p --patch)'{-p,--patch}'[show patch]' - '(-g --git)'{-g,--git}'[use git extended diff format]' - '(-l --limit NUM)'{-l,--limit}'[limit number of changes displayed]' - '(-M --no-merges)'{-M,--no-merges}'[do not show merges]' - '(--stat)--stat[output diffstat-style summary of changes]' - '(--style STYLE)--style[display using template map file]' - '(--template TEMPLATE)--template[display with template]' - '(-e --ssh CMD)'{-e,--ssh}'[specify ssh command to use]' - '(--remotecmd CMD)--remotecmd[specify hg command to run on the remote side]' - '(--insecure)--insecure[do not verify server certificate (ignoring web.cacerts config)]' - '(-S --subrepos)'{-S,--subrepos}'[recurse into subrepositories]' - ) - ;; - parents) - _command_options=( - '(-r --rev REV)'{-r,--rev}'[show parents of the specified revision]' - '(--style STYLE)--style[display using template map file]' - '(--template TEMPLATE)--template[display with template]' - ) - ;; - pull) - _command_options=( - '(-u --update)'{-u,--update}'[update to new branch head if changesets were pulled]' - '(-f --force)'{-f,--force}'[run even when remote repository is unrelated]' - '(-r --rev REV [+])'{-r,--rev}'[a remote changeset intended to be added]' - '(-B --bookmark BOOKMARK [+])'{-B,--bookmark}'[bookmark to pull]' - '(-b --branch BRANCH [+])'{-b,--branch}'[a specific branch you would like to pull]' - '(-e --ssh CMD)'{-e,--ssh}'[specify ssh command to use]' - '(--remotecmd CMD)--remotecmd[specify hg command to run on the remote side]' - '(--insecure)--insecure[do not verify server certificate (ignoring web.cacerts config)]' - ) - ;; - push) - _command_options=( - '(-f --force)'{-f,--force}'[force push]' - '(-r --rev REV [+])'{-r,--rev}'[a changeset intended to be included in the destination]' - '(-B --bookmark BOOKMARK [+])'{-B,--bookmark}'[bookmark to push]' - '(-b --branch BRANCH [+])'{-b,--branch}'[a specific branch you would like to push]' - '(--new-branch)--new-branch[allow pushing a new branch]' - '(-e --ssh CMD)'{-e,--ssh}'[specify ssh command to use]' - '(--remotecmd CMD)--remotecmd[specify hg command to run on the remote side]' - '(--insecure)--insecure[do not verify server certificate (ignoring web.cacerts config)]' - ) - ;; - rebase) - _command_options( - '(-s --source REV)'{-s,--source}'[rebase from the specified changeset]' - '(--base REV)--base[rebase from the base of the specified changeset (up to greatest common ancestor of base and dest)]' - '(-d --dest REV)'{-d,--dest}'[rebase onto the specified changeset]' - '(--collapse)--collapse[collapse the rebased changesets]' - '(--keep)--keep[keep original changesets]' - '(--keepbranches)--keepbranches[keep original branch names]' - '(-detach)-detach[force detaching of source from its original branch]' - '(-c --continue)'{-c,--continue}'[continue an interrupted rebase]' - '(-a --abort){-a,--abort}[abort an interrupted rebase]' - '(--style STYLE)--style[display using template map file]' - '(--template TEMPLATE)--template[display with template]' - ) - ;; - remove|rm) - _command_options=( - '(-A --after)'{-A,--after}'[record delete for missing files]' - '(-f --force)'{-f,--force}'[remove (and delete) file even if added or modified]' - '(-I --include PATTERN [+])'{-I,--include}'[include names matching the given patterns]' - '(-X --exclude PATTERN [+])'{-X,--exclude}'[exclude names matching the given patterns]' - ) - ;; - rename|move|mv) - _command_options=( - '(-A --after)'{-A,--after}'[record a rename that has already occurred]' - '(-f --force)'{-f,--force}'[forcibly copy over an existing managed file]' - '(-I --include PATTERN [+])'{-I,--include}'[include names matching the given patterns]' - '(-X --exclude PATTERN [+])'{-X,--exclude}'[exclude names matching the given patterns]' - '(-n --dry-run)'{-n,--dry-run}'[do not perform actions, just print output]' - ) - ;; - resolve) - _command_options=( - '(-a --all)'{-a,--all}'[select all unresolved files]' - '(-l --list)'{-l,--list}'[list state of files needing merge]' - '(-m --mark)'{-m,--mark}'[mark files as resolved]' - '(-u --unmark)'{-u,--unmark}'[mark files as unresolved]' - '(-t --tool VALUE)'{-t,--tool}'[specify merge tool]' - '(-n --no-status)'{-n,--no-status}'[hide status prefix]' - '(-I --include PATTERN [+])'{-I,--include}'[include names matching the given patterns]' - '(-X --exclude PATTERN [+])'{-X,--exclude}'[exclude names matching the given patterns]' - ) - ;; - revert) - _command_options=( - '(-a --all)'{-a,--all}'[revert all changes when no arguments given]' - '(-d --date DATE)'{-d,--date}'[tipmost revision matching date]' - '(-r --rev REV)'{-r,--rev}'[revert to the specified revision]' - '(--no-backup)--no-backup[do not save backup copies of files]' - '(-I --include PATTERN [+])'{-I,--include}'[include names matching the given patterns]' - '(-X --exclude PATTERN [+])'{-X,--exclude}'[exclude names matching the given patterns]' - '(-n --dry-run)'{-n,--dry-run}'[do not perform actions, just print output]' - ) - ;; - rollback) - _command_options=( - '(-n --dry-run)'{-n,--dry-run}'[do not perform actions, just print output]' - ) - ;; - serve) - _command_options=( - '(-A --accesslog FILE)'{-A,--accesslog}'[name of access log file to write to]' - '(-d --daemon)'{-d,--daemon}'[run server in background]' - '(--daemon-pipefds NUM)--daemon-pipefds[used internally by daemon mode]' - '(-E --errorlog FILE)'{-E,--errorlog}'[name of error log file to write to]' - '(-p --port PORT)'{-p,--port}'[port to listen on (default: 8000)]' - '(-a --address ADDR)'{-a,--address}'[address to listen on (default: all interfaces)]' - '(--prefix PREFIX)--prefix[prefix path to serve from (default: server root)]' - '(-n --name NAME)'{-n,--name}'[name to show in web pages (default: working directory)]' - '(--web-conf FILE)--web-conf[name of the hgweb config file (see "hg help hgweb")]' - '(--pid-file FILE)--pid-file[name of file to write process ID to]' - '(--stdio)--stdio[for remote clients]' - '(-t --templates TEMPLATE)'{-t,--templates}'[web templates to use]' - '(--style STYLE)--style[template style to use]' - '(-6 --ipv6)'{-6,--ipv6}'[use IPv6 in addition to IPv4]' - '(--certificate FILE)--certificate[SSL certificate file]' - ) - ;; - showconfig|debugconfig) - _command_options=( - '(-u -untrusted)'{-u,-untrusted}'[show untrusted configuration options]' - ) - ;; - status|st) - _command_options=( - '(-A --all)'{-A,--all}'[show status of all files]' - '(-m --modified)'{-m,--modified}'[show only modified files]' - '(-a --added)'{-a,--added}'[show only added files]' - '(-r --removed)'{-r,--removed}'[show only removed files]' - '(-d --deleted)'{-d,--deleted}'[show only deleted (but tracked) files]' - '(-c --clean)'{-c,--clean}'[show only files without changes]' - '(-u --unknown)'{-u,--unknown}'[show only unknown (not tracked) files]' - '(-i --ignored)'{-i,--ignored}'[show only ignored files]' - '(-n --no-status)'{-n,--no-status}'[hide status prefix]' - '(-C --copies)'{-C,--copies}'[show source of copied files]' - '(-0 --print0)'{-0,--print0}'[end filenames with NUL, for use with xargs]' - '(--rev REV [+])--rev[show difference from revision]' - '(--change REV)--change[list the changed files of a revision]' - '(-I --include PATTERN [+])'{-I,--include}'[include names matching the given patterns]' - '(-X --exclude PATTERN [+])'{-X,--exclude}'[exclude names matching the given patterns]' - '(-S --subrepos)'{-S,--subrepos}'[recurse into subrepositories]' - ) - ;; - summary|sum) - _command_options=( - '(--remote)--remote[check for push and pull]' - ) - ;; - tag) - _command_options=( - '(-f --force)'{-f,--force}'[force tag]' - '(-l --local)'{-l,--local}'[make the tag local]' - '(-r --rev REV)'{-r,--rev}'[revision to tag]' - '(--remove)--remove[remove a tag]' - '(-e --edit)'{-e,--edit}'[edit commit message]' - '(-m --message TEXT)'{-m,--message}'[use as commit message]' - '(-d --date DATE)'{-d,--date}'[record the specified date as commit date]' - '(-u --user USER)'{-u,--user}'[record the specified user as committer]' - ) - ;; - transplant) - _command_options=( - '(-s --source REPO)'{-s,--source}'[pull patches from REPO]' - '(-b --branch BRANCH [+])'{-b,--branch}'[pull patches from branch BRANCH]' - '(-a --all)'{-a,--all}'[pull all changesets up to BRANCH]' - '(-p --prune REV [+])'{-p,--prune}'[skip over REV]' - '(-m --merge REV [+])'{-m,--merge}'[merge at REV]' - '(--log)--log[append transplant info to log message]' - '(-c --continue)'{-c,--continue}'[continue last transplant session after repair]' - '(--filter CMD)--filter[filter changesets through command]' - ) - ;; - tip) - _command_options=( - '(-p --patch)'{-p,--patch}'[show patch]' - '(-g --git)'{-g,--git}'[use git extended diff format]' - '(--style STYLE)--style[display using template map file]' - '(--template TEMPLATE)--template[display with template]' - ) - ;; - unbundle) - _command_options=( - '(-u --update)'{-u,--update}'[update to new branch head if changesets were unbundled]' - ) - ;; - update|up|checkout|co) - _command_options=( - '(-C --clean)'{-C,--clean}'[discard uncommitted changes (no backup)]' - '(-c --check)'{-c,--check}'[update across branches if no uncommitted changes]' - '(-d --date DATE)'{-d,--date}'[tipmost revision matching date]' - '(-r --rev REV)'{-r,--rev}'[revision]' - ) - ;; - *) -esac - -_arguments \ - $_global_options \ - $_command_options From 8283745719c92e1948088af28b412154656e525c Mon Sep 17 00:00:00 2001 From: Celestino Gomes Date: Fri, 1 Apr 2016 16:43:57 -0300 Subject: [PATCH 09/11] better way to delete removed files from git --- plugins/git/git.plugin.zsh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh index dac15a5ae..33fe6bfcb 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -216,7 +216,6 @@ alias glum='git pull upstream master' alias gwch='git whatchanged -p --abbrev-commit --pretty=medium' alias gwip='git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit -m "--wip--"' -# Remove from repo all files deleted -alias gitstrm="git st | egrep 'deleted' | sed -e 's/#//' -e 's/deleted:/git rm/' | sh" +alias gitrmdeleted="git ls-files --deleted -z | xargs -0 git rm -r" alias gitgcprune="git remote prune origin ; git gc --prune --aggressive" From 57ca56e350b4b25bbae828b51b8d9cb2ba97ab07 Mon Sep 17 00:00:00 2001 From: Celestino Gomes Date: Mon, 23 May 2016 15:05:20 -0300 Subject: [PATCH 10/11] Update git.plugin.zsh --- plugins/git/git.plugin.zsh | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh index 33fe6bfcb..0ec59b493 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -217,5 +217,3 @@ alias gwch='git whatchanged -p --abbrev-commit --pretty=medium' alias gwip='git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit -m "--wip--"' alias gitrmdeleted="git ls-files --deleted -z | xargs -0 git rm -r" - -alias gitgcprune="git remote prune origin ; git gc --prune --aggressive" From 4ddcea61d7c7dfe418e5d9ee01e9592d697dfd9a Mon Sep 17 00:00:00 2001 From: tinogomes Date: Sun, 16 Jul 2017 19:05:50 -0300 Subject: [PATCH 11/11] Brew plugin: new aliases for `brew services` --- plugins/brew/brew.plugin.zsh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/brew/brew.plugin.zsh b/plugins/brew/brew.plugin.zsh index 6fb7f3453..2d2c69ba5 100644 --- a/plugins/brew/brew.plugin.zsh +++ b/plugins/brew/brew.plugin.zsh @@ -3,6 +3,11 @@ alias bubo='brew update && brew outdated' alias bubc='brew upgrade && brew cleanup' alias bubu='bubo && bubc' +alias bsl='brew services list' +alias bsr='brew services run' +alias bson='brew services start' +alias bsoff='brew services stop' + if command mkdir "$ZSH_CACHE_DIR/.brew-completion-message" 2>/dev/null; then print -P '%F{yellow}'Oh My Zsh brew plugin: cat <<-'EOF'