From a0a604953528aa884031df6a09393abce775f5ee Mon Sep 17 00:00:00 2001 From: guruswarupa Date: Tue, 16 Jul 2024 10:55:41 +0530 Subject: [PATCH] bashrc fastfetch path dynamic. --- .bashrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index 30a67f5..d829fdc 100644 --- a/.bashrc +++ b/.bashrc @@ -4,8 +4,10 @@ iatest=$(expr index "$-" i) ####################################################### # SOURCED ALIAS'S AND SCRIPTS BY zachbrowne.me ####################################################### -if [ -f /usr/bin/fastfetch ]; then - fastfetch +FASTFETCH_PATH=$(which fastfetch 2>/dev/null) + +if [ -x "$FASTFETCH_PATH" ]; then + "$FASTFETCH_PATH" fi # Source global definitions