summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaetan Semet <gaetan@xeberon.net>2013-09-10 11:19:00 +0200
committerGaetan Semet <gaetan@xeberon.net>2013-09-10 11:20:07 +0200
commit8735dfd87e98d79aa3a809117630cec907c1a86d (patch)
treef9d7e7e8df09adaefd2a49e65c7cee7aae76ad97
parentdff966afad231f66f6e7345383412682992f9e84 (diff)
downloadzsh-8735dfd87e98d79aa3a809117630cec907c1a86d.tar.gz
zsh-8735dfd87e98d79aa3a809117630cec907c1a86d.tar.bz2
zsh-8735dfd87e98d79aa3a809117630cec907c1a86d.zip
New aliases for repo plugin
This helps a lot in day to day android development: - rs: repo sync (git fetch on all projects) - rra: auto rebase for all projet without loosing uncommited changes - rsrra: do both steps at once Signed-off-by: Gaetan Semet <gaetan@xeberon.net>
-rw-r--r--plugins/repo/repo.plugin.zsh10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/repo/repo.plugin.zsh b/plugins/repo/repo.plugin.zsh
index 9cc336959..d690a9d22 100644
--- a/plugins/repo/repo.plugin.zsh
+++ b/plugins/repo/repo.plugin.zsh
@@ -1,2 +1,12 @@
# 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 rsrra='repo sync ; repo rebase --auto-stash'
+compdef _repo rsrra='repo sync ; repo rebase --auto-stash'