diff options
author | Stefan Ritter <xeno@thehappy.de> | 2011-06-28 11:30:10 +0200 |
---|---|---|
committer | Stefan Ritter <xeno@thehappy.de> | 2011-06-28 11:30:10 +0200 |
commit | 41138a68e41d9f049a26c8a9e3bf10d1b3bff18d (patch) | |
tree | 347e58444270ab45342c2bbe2fdd8f9ff968f5ba /zsh/zshrc | |
parent | af882f206b72244947da24394be7f71cbdb79050 (diff) |
Use yaourt if existing
Diffstat (limited to '')
-rw-r--r-- | zsh/zshrc | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -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' |