From 79dc7b4cb25ddea97e30675f841f637aff77179f Mon Sep 17 00:00:00 2001 From: timoxa0 Date: Sat, 11 Jan 2025 23:08:50 +0500 Subject: [PATCH] config: ensure that binary exists before creating alias --- config.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.fish b/config.fish index 8075fcb..c912c9a 100644 --- a/config.fish +++ b/config.fish @@ -21,8 +21,8 @@ end function _set_env if [ "$TERM" = "foot" ] || [ "$TERM" = "xterm-kitty" ] - alias ssh="TERM=xterm-256color $(which ssh)" - alias gg="TERM=xterm-256color $(which gg)" + which ssh > /dev/null 2>&1 && alias ssh="TERM=xterm-256color $(which ssh)" + which gg > /dev/null 2>&1 && alias gg="TERM=xterm-256color $(which gg)" end set -x VIRTUAL_ENV_DISABLE_PROMPT set -x PF_INFO "ascii title os host kernel uptime memory de"