From a5ab8404e2994b3463ad35b49f52bf9bf7a2bb0b Mon Sep 17 00:00:00 2001 From: Guru Swarupa <112751363+guruswarupa@users.noreply.github.com> Date: Thu, 9 Jan 2025 11:10:49 +0530 Subject: [PATCH] Update .bashrc Co-authored-by: Jeevitha Kannan K S --- .bashrc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.bashrc b/.bashrc index d829fdc..6b19e22 100644 --- a/.bashrc +++ b/.bashrc @@ -4,10 +4,8 @@ iatest=$(expr index "$-" i) ####################################################### # SOURCED ALIAS'S AND SCRIPTS BY zachbrowne.me ####################################################### -FASTFETCH_PATH=$(which fastfetch 2>/dev/null) - -if [ -x "$FASTFETCH_PATH" ]; then - "$FASTFETCH_PATH" +if command -v fastfetch 2>/dev/null; then + fastfetch fi # Source global definitions