From 053bb13130afb0485e9d05cd670ac7b09203ace1 Mon Sep 17 00:00:00 2001 From: dabruh <11458706-dabruh@users.noreply.gitlab.com> Date: Wed, 15 Nov 2023 17:30:43 +0100 Subject: [PATCH] Use command -v --- .config/shell/aliases/common | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.config/shell/aliases/common b/.config/shell/aliases/common index 5848b34..b5b8800 100644 --- a/.config/shell/aliases/common +++ b/.config/shell/aliases/common @@ -22,8 +22,8 @@ alias \ alias \ w='curl https://wttr.in/' -which codium >/dev/null && alias code=codium c=codium -which pacman >/dev/null && alias p=pacman -which zathura >/dev/null && alias z=zathura -which ranger >/dev/null && alias r=ranger +command -v codium >/dev/null && alias code=codium c=codium +command -v pacman >/dev/null && alias p=pacman +command -v zathura >/dev/null && alias z=zathura +command -v ranger >/dev/null && alias r=ranger [ -s "$NVM_DIR/nvm.sh" ] && alias load-nvm="source '$NVM_DIR/nvm.sh'"