diff options
-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' |