diff options
author | 2025-02-13 14:13:49 +0530 | |
---|---|---|
committer | 2025-02-13 14:13:49 +0530 | |
commit | 8a2e1006b3b272126332aa064f3ad95387129544 (patch) | |
tree | 944c80ac612a65980d94a54ba11b6c7102037ecf /.config/zsh/oh-my-zsh/plugins/arcanist/arcanist.plugin.zsh | |
parent | dcbb16d8b08ff5956abef5e6478b59df2e93ad35 (diff) | |
download | dotfiles-master.tar.gz dotfiles-master.tar.bz2 dotfiles-master.zip |
Diffstat (limited to '.config/zsh/oh-my-zsh/plugins/arcanist/arcanist.plugin.zsh')
-rw-r--r-- | .config/zsh/oh-my-zsh/plugins/arcanist/arcanist.plugin.zsh | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/.config/zsh/oh-my-zsh/plugins/arcanist/arcanist.plugin.zsh b/.config/zsh/oh-my-zsh/plugins/arcanist/arcanist.plugin.zsh new file mode 100644 index 0000000..380eede --- /dev/null +++ b/.config/zsh/oh-my-zsh/plugins/arcanist/arcanist.plugin.zsh @@ -0,0 +1,39 @@ +# +# Aliases +# (sorted alphabetically) +# + +alias ara='arc amend' +alias arb='arc branch' +alias arbl='arc bland' +alias arco='arc cover' +alias arci='arc commit' + +alias ard='arc diff' +alias ardc='arc diff --create' +alias ardnu='arc diff --nounit' +alias ardnupc='arc diff --nounit --plan-changes' +alias ardpc='arc diff --plan-changes' +alias ardp='arc diff --preview' # creates a new diff in the phab interface + +alias are='arc export' +alias arh='arc help' +alias arho='arc hotfix' +alias arl='arc land' +alias arli='arc lint' +alias arls='arc list' + +# +# 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}" +} |