config: ensure that binary exists before creating alias

This commit is contained in:
timoxa0 2025-01-11 23:08:50 +05:00
parent c5c5117f7c
commit 79dc7b4cb2

View file

@ -21,8 +21,8 @@ end
function _set_env function _set_env
if [ "$TERM" = "foot" ] || [ "$TERM" = "xterm-kitty" ] if [ "$TERM" = "foot" ] || [ "$TERM" = "xterm-kitty" ]
alias ssh="TERM=xterm-256color $(which ssh)" which ssh > /dev/null 2>&1 && alias ssh="TERM=xterm-256color $(which ssh)"
alias gg="TERM=xterm-256color $(which gg)" which gg > /dev/null 2>&1 && alias gg="TERM=xterm-256color $(which gg)"
end end
set -x VIRTUAL_ENV_DISABLE_PROMPT set -x VIRTUAL_ENV_DISABLE_PROMPT
set -x PF_INFO "ascii title os host kernel uptime memory de" set -x PF_INFO "ascii title os host kernel uptime memory de"