From b3daabdeec6d8c821a76bdc27840d7628f21090d Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Sat, 13 Nov 2021 11:20:00 +0800 Subject: update --- alias | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alias') diff --git a/alias b/alias index ff4347f..9414752 100644 --- a/alias +++ b/alias @@ -113,7 +113,7 @@ alias pfl='pacman -Fl' alias pqe='pacman -Qqe' alias pR='sudo pacman -R' psi() { - pqe | grep $1 >/dev/null && echo -e "$(tput setaf 13)[Installed]$(tput sgr0)" + [[ $(pacman -Qqe $1) != '' ]] 2>/dev/null && echo -e "$(tput setaf 13)[Installed]$(tput sgr0)" pacman -Si $1 } -- cgit v1.2.3-70-g09d2