arcanist.plugin.zsh 769 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #
  2. # Aliases
  3. # (sorted alphabetically)
  4. #
  5. alias ara='arc amend'
  6. alias arb='arc branch'
  7. alias arco='arc cover'
  8. alias arci='arc commit'
  9. alias ard='arc diff'
  10. alias ardc='arc diff --create'
  11. alias ardnu='arc diff --nounit'
  12. alias ardnupc='arc diff --nounit --plan-changes'
  13. alias ardpc='arc diff --plan-changes'
  14. alias ardp='arc diff --preview' # creates a new diff in the phab interface
  15. alias are='arc export'
  16. alias arh='arc help'
  17. alias arl='arc land'
  18. alias arli='arc lint'
  19. alias arls='arc list'
  20. #
  21. # Functions
  22. # (sorted alphabetically)
  23. #
  24. ardu() {
  25. # Both `ardu https://arcanist-url.com/<REVISION>`, and `ardu <REVISION>` work.
  26. arc diff --update "${1:t}"
  27. }
  28. arpa() {
  29. # Both `arpa https://arcanist-url.com/<REVISION>`, and `arpa <REVISION>` work.
  30. arc patch "${1:t}"
  31. }