aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-07-10 17:55:16 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2015-07-10 17:55:16 +0200
commitc75c218cead9a2be480b0f47cdb5162d876fedd8 (patch)
tree3c824552edea0d554ea6e6e1fc110b1532aacd8a
parent48c371b9e536917794d24b79221d40ff78ab04a1 (diff)
downloaddotfiles-c75c218cead9a2be480b0f47cdb5162d876fedd8.tar.xz
zsh: add aur-push/pull alias/function
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rw-r--r--zsh/aliases.zsh11
1 files changed, 11 insertions, 0 deletions
diff --git a/zsh/aliases.zsh b/zsh/aliases.zsh
index d88ea17..ba1793b 100644
--- a/zsh/aliases.zsh
+++ b/zsh/aliases.zsh
@@ -117,3 +117,14 @@ function 5clone {
}
alias 5ssh='TERM=xterm ssh'
+
+aur-push() {
+ git push aur@aur4.archlinux.org:/"$1".git "$1":master
+}
+
+aur-pull() {
+ local old_branch=$(git symbolic-ref --short HEAD)
+ git checkout "$1"
+ git pull aur@aur4.archlinux.org:/"$1".git master:"$1"
+ git checkout "$old_branch"
+}