From a226af0e8ce6bbb500504d2ccb4b48ab598acf38 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sat, 10 Aug 2024 07:15:19 +0300 Subject: [PATCH] {bash,zsh}rc: improve the pacman alias --- rc/bashrc | 5 +++-- rc/zshrc | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/rc/bashrc b/rc/bashrc index 6abe8cfd..c9998c68 100755 --- a/rc/bashrc +++ b/rc/bashrc @@ -557,8 +557,9 @@ alias connman-wlans='grep -E "Name|Passphrase" /var/lib/connman/wifi*/settings - alias lowernocolon="tr -d ':' | tr 'A-Z' 'a-z'" # I don't want to reinstall exact same versions that I have -alias pacman="LANG=en pacman --needed" -#fi +if hash pacman 2> /dev/null; then + alias pacman="LANG=en_DK.UTF-8 pacman --needed" +fi # Sailfish Network status, via IRC alias sailfish-nstatus='dbus-send --system --type=method_call --print-reply --dest=net.connman / net.connman.Manager.GetServices|less' diff --git a/rc/zshrc b/rc/zshrc index 54773abe..1bdd8dc2 100755 --- a/rc/zshrc +++ b/rc/zshrc @@ -543,8 +543,9 @@ alias connman-wlans='grep -E "Name|Passphrase" /var/lib/connman/wifi*/settings - alias lowernocolon="tr -d ':' | tr 'A-Z' 'a-z'" # I don't want to reinstall exact same versions that I have -alias pacman="LANG=en pacman --needed" -#fi +if hash pacman 2> /dev/null; then + alias pacman="LANG=en_DK.UTF-8 pacman --needed" +fi # Sailfish Network status, via IRC alias sailfish-nstatus='dbus-send --system --type=method_call --print-reply --dest=net.connman / net.connman.Manager.GetServices|less'