diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2015-07-10 17:55:16 +0200 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-07-10 17:55:16 +0200 |
commit | c75c218cead9a2be480b0f47cdb5162d876fedd8 (patch) | |
tree | 3c824552edea0d554ea6e6e1fc110b1532aacd8a /zsh | |
parent | 48c371b9e536917794d24b79221d40ff78ab04a1 (diff) | |
download | dotfiles-c75c218cead9a2be480b0f47cdb5162d876fedd8.tar.xz |
zsh: add aur-push/pull alias/function
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Diffstat (limited to 'zsh')
-rw-r--r-- | zsh/aliases.zsh | 11 |
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" +} |