From c75c218cead9a2be480b0f47cdb5162d876fedd8 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Fri, 10 Jul 2015 17:55:16 +0200 Subject: zsh: add aur-push/pull alias/function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- zsh/aliases.zsh | 11 +++++++++++ 1 file changed, 11 insertions(+) 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" +} -- cgit v1.2.3-70-g09d2