From 1c12a125db89a6b828a2b9c8f8778d6c4e4edb60 Mon Sep 17 00:00:00 2001 From: dabruh <11458706-dabruh@users.noreply.gitlab.com> Date: Wed, 29 Nov 2023 09:51:47 +0100 Subject: [PATCH] Adjust VSC aliases --- .config/shell/aliases/common | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.config/shell/aliases/common b/.config/shell/aliases/common index b2e0f9a..5298de0 100644 --- a/.config/shell/aliases/common +++ b/.config/shell/aliases/common @@ -22,10 +22,11 @@ alias \ alias \ w="curl https://wttr.in/" -for cmd in code codium; do - command -v $cmd >/dev/null && alias $cmd="$cmd --password-store='gnome'" -done -command -v codium >/dev/null && alias c=code +alias code="code --password-store='gnome'" +if command -v codium >/dev/null; then + alias code="codium --password-store='gnome'" +fi +alias c=code command -v pacman >/dev/null && alias p=pacman command -v zathura >/dev/null && alias z=zathura