conf2/zsh/.oh-my-zsh/plugins/arcanist/arcanist.plugin.zsh

38 lines
769 B
Bash
Raw Normal View History

2019-01-12 15:47:23 +00:00
#
# Aliases
# (sorted alphabetically)
#
alias ara='arc amend'
alias arb='arc branch'
alias arco='arc cover'
alias arci='arc commit'
alias ard='arc diff'
2020-06-11 14:41:32 +00:00
alias ardc='arc diff --create'
2019-01-12 15:47:23 +00:00
alias ardnu='arc diff --nounit'
alias ardnupc='arc diff --nounit --plan-changes'
alias ardpc='arc diff --plan-changes'
2020-06-11 14:41:32 +00:00
alias ardp='arc diff --preview' # creates a new diff in the phab interface
2019-01-12 15:47:23 +00:00
alias are='arc export'
alias arh='arc help'
alias arl='arc land'
alias arli='arc lint'
alias arls='arc list'
2020-06-11 14:41:32 +00:00
#
# Functions
# (sorted alphabetically)
#
ardu() {
# Both `ardu https://arcanist-url.com/<REVISION>`, and `ardu <REVISION>` work.
arc diff --update "${1:t}"
}
arpa() {
# Both `arpa https://arcanist-url.com/<REVISION>`, and `arpa <REVISION>` work.
arc patch "${1:t}"
}