mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
35 lines
1.1 KiB
Bash
35 lines
1.1 KiB
Bash
# 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 rs.='repo sync .'
|
|
compdef _repo rs.='repo sync'
|
|
|
|
alias rra.='repo rebase --auto-stash .'
|
|
compdef _repo rra.='repo rebase --auto-stash'
|
|
|
|
alias rsrra='repo sync ; repo rebase --auto-stash'
|
|
compdef _repo rsrra='repo sync ; repo rebase --auto-stash'
|
|
|
|
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'
|
|
|
|
# Repo start current branch on all projects
|
|
alias rscb='echo "Starting branch $(git branch | sed -n "/\* /s///p") on all projects" && repo start $(git branch | sed -n "/\* /s///p") --all'
|
|
compdef _repo rscb='repo start'
|
|
|
|
# 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'
|
|
compdef _repo rscbrra='repo rebase'
|