mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
New aliases for repo
Signed-off-by: Gaetan Semet <gaetan@xeberon.net>
This commit is contained in:
parent
68655bfc74
commit
1d58fa41d3
1 changed files with 27 additions and 0 deletions
|
|
@ -33,3 +33,30 @@ compdef _repo rscb='repo start'
|
||||||
# Repo start and rebase current branch on all projects
|
# Repo start and rebase current branch on all projects
|
||||||
alias rscbrra='echo "Starting & Rebasing branch $(git branch | sed -n "/\* /s///p") on all projects" && rscb && echo "Rebasing..." && rra'
|
alias rscbrra='echo "Starting & Rebasing branch $(git branch | sed -n "/\* /s///p") on all projects" && rscb && echo "Rebasing..." && rra'
|
||||||
compdef _repo rscbrra='repo rebase'
|
compdef _repo rscbrra='repo rebase'
|
||||||
|
|
||||||
|
# Repo start and rebase current branch on all projects
|
||||||
|
alias rscbrsrra='echo "Starting & Rebasing branch $(git branch | sed -n "/\* /s///p") on all projects" && rscb && echo "Sync & Rebasing..." && rsrra'
|
||||||
|
compdef _repo rscbrsrra='repo rebase'
|
||||||
|
|
||||||
|
function rsbrra()
|
||||||
|
{
|
||||||
|
if [[ -z $1 ]]; then
|
||||||
|
echo "usage: rsbrra <branch name>"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
echo "Starting branch $1 and syncing up all project (repo rebase)"
|
||||||
|
repo start $1 --all
|
||||||
|
repo rebase --auto-stash
|
||||||
|
}
|
||||||
|
|
||||||
|
function rsbrsrra()
|
||||||
|
{
|
||||||
|
if [[ -z $1 ]]; then
|
||||||
|
echo "usage: rsbrsrra <branch name>"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
echo "Starting branch $1 and syncing up all project (repo rebase)"
|
||||||
|
repo start $1 --all || return 1
|
||||||
|
repo sync || return 1
|
||||||
|
repo rebase --auto-stash || return 1
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue