diff --git a/rc/bashrc b/rc/bashrc index 5ccae096..5a60f430 100644 --- a/rc/bashrc +++ b/rc/bashrc @@ -595,6 +595,14 @@ alias connman-wlans='grep -E "Name|Passphrase" /var/lib/connman/wifi*/settings - # Meant for SSL certificates (IRC)) alias lowernocolon="tr -d ':' | tr 'A-Z' 'a-z'" +# As pacman and yaourt share the same flags +if hash yaourt 2>/dev/null; then + alias pacman="yaourt --needed" +else +# I don't want to reinstall exact same versions that I have + alias pacman="pacman --needed" +fi + # Allow custom aliases to be put in .aliases or .bash_aliases . # .aliases diff --git a/rc/zshrc b/rc/zshrc index a3c25469..b9f56d5b 100644 --- a/rc/zshrc +++ b/rc/zshrc @@ -570,6 +570,14 @@ alias connman-wlans='grep -E "Name|Passphrase" /var/lib/connman/wifi*/settings - # Meant for SSL certificates (IRC)) alias lowernocolon="tr -d ':' | tr 'A-Z' 'a-z'" +# As pacman and yaourt share the same flags +if hash yaourt 2>/dev/null; then + alias pacman="yaourt --needed" +else +# I don't want to reinstall exact same versions that I have + alias pacman="pacman --needed" +fi + # .aliases if [ -f ~/.aliases ]; then source ~/.aliases