diff options
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" +} |