summaryrefslogtreecommitdiffstats
path: root/zsh
diff options
context:
space:
mode:
authorStefan Ritter <xeno@thehappy.de>2011-06-28 11:30:10 +0200
committerStefan Ritter <xeno@thehappy.de>2011-06-28 11:30:10 +0200
commit41138a68e41d9f049a26c8a9e3bf10d1b3bff18d (patch)
tree347e58444270ab45342c2bbe2fdd8f9ff968f5ba /zsh
parentaf882f206b72244947da24394be7f71cbdb79050 (diff)
Use yaourt if existing
Diffstat (limited to 'zsh')
-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'