summaryrefslogtreecommitdiffstats
path: root/zsh/zshrc
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--zsh/zshrc14
1 files changed, 10 insertions, 4 deletions
diff --git a/zsh/zshrc b/zsh/zshrc
index 1ce5642..d965335 100644
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -82,10 +82,16 @@ alias yi="sudo yum install"
alias yr="sudo yum remove"
alias ys="yum search"
-alias pi="sudo pacman -S"
-alias pss="pacman -Ss"
-alias pu="sudo pacman -Syu"
-alias pr="sudo pacman -Rcsn"
+if [ -e /usr/bin/yaourt ]; then
+ pacman_bin='yaourt'
+else
+ pacman_bin='pacman'
+fi
+
+alias pi="sudo $pacman_bin -S"
+alias pss="$pacman_bin -Ss"
+alias pu="sudo $pacman_bin -Syu"
+alias pr="sudo $pacman_bin -Rcsn"
alias svn-uscan='uscan --verbose --force-download --rename --repack --destdir=../tarballs'
alias svn-bp='svn-buildpackage --svn-builder=pdebuild --svn-ignore-new'