From 90b526deab953e455e74ff629de933245e07858f Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Thu, 15 Apr 2021 02:44:47 -0500 Subject: [PATCH] conditional aliases --- dot_local/scripts/zsh/aliases.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dot_local/scripts/zsh/aliases.zsh b/dot_local/scripts/zsh/aliases.zsh index e3d2ebe..d008eee 100644 --- a/dot_local/scripts/zsh/aliases.zsh +++ b/dot_local/scripts/zsh/aliases.zsh @@ -1,5 +1,5 @@ -alias ls="exa" -alias rm="garbage put" +command_exists exa && alias ls="exa" +command_exists garbage && alias rm="garbage put" alias cm="chezmoi" alias kill-gpg-agent="gpgconf --kill gpg-agent"