Обновление ohmyzsh

This commit is contained in:
2021-06-10 11:49:35 +05:00
parent 9fcc978a55
commit e7247fa93a
501 changed files with 18233 additions and 8842 deletions

View File

@@ -1,7 +1,25 @@
## repo
**Maintainer:** [Stibbons](https://github.com/Stibbons)
# repo plugin
This plugin mainly add support automatic completion for the repo command line tool:
https://code.google.com/p/git-repo/
This plugin mainly adds some aliases and support for automatic completion for
the [repo command line tool](https://code.google.com/p/git-repo/).
* `r` aliases `repo`
To use it, add `repo` to the plugins array in your zshrc file:
```zsh
plugins=(... repo)
```
## Aliases
| Alias | Command |
|---------|----------------------------------------|
| `r` | `repo` |
| `rra` | `repo rebase --auto-stash` |
| `rs` | `repo sync` |
| `rsrra` | `repo sync ; repo rebase --auto-stash` |
| `ru` | `repo upload` |
| `rst` | `repo status` |
| `rsto` | `repo status -o` |
| `rfa` | `repo forall -c` |
| `rfap` | `repo forall -p -c` |
| `rinf` | `repo info` |

View File

@@ -1,6 +1,5 @@
#compdef repo
__git_apply_whitespace_strategies ()
{
declare -a strategies
@@ -269,4 +268,3 @@ __repo_projects_or_all()
_repo "$@"
return $?

View File

@@ -1,18 +1,10 @@
# Aliases
alias r='repo'
compdef _repo r=repo
alias rra='repo rebase --auto-stash'
compdef _repo rra='repo rebase --auto-stash'
alias rs='repo sync'
compdef _repo rs='repo sync'
alias rsrra='repo sync ; repo rebase --auto-stash'
compdef _repo rsrra='repo sync ; repo rebase --auto-stash'
alias ru='repo upload'
compdef _repo ru='repo upload'
alias rst='repo status'
compdef _repo rst='repo status'
alias rsto='repo status -o'
alias rfa='repo forall -c'
alias rfap='repo forall -p -c'
alias rinf='repo info'