From 36a30b3093dc5632de5c2d77f9096d061634a17f Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Tue, 24 May 2022 22:15:24 -0700 Subject: [PATCH] only add paru alias if paru exists --- .config/shell/aliases | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.config/shell/aliases b/.config/shell/aliases index f9640c7..bc75ada 100644 --- a/.config/shell/aliases +++ b/.config/shell/aliases @@ -2,7 +2,6 @@ ## Short hand programs (ex: sc = shellcheck) >>> # use nvim rather than vim if the command exists alias \ - vim='nvim' \ vimdiff='nvim -d' \ alias \ @@ -56,7 +55,7 @@ alias \ # super duper paru alias # shellcheck disable=SC2139 -alias \ +command -v paru > /dev/null && alias \ parue="$(which paru) --color=auto --sudoloop --newsonupgrade --pgpfetch --upgrademenu --bottomup --fm nvim" \ paru='parue --skipreview' \