Skip to content

Commit a0a6049

Browse files
committed
bashrc fastfetch path dynamic.
1 parent 9c85c80 commit a0a6049

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.bashrc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ iatest=$(expr index "$-" i)
44
#######################################################
55
# SOURCED ALIAS'S AND SCRIPTS BY zachbrowne.me
66
#######################################################
7-
if [ -f /usr/bin/fastfetch ]; then
8-
fastfetch
7+
FASTFETCH_PATH=$(which fastfetch 2>/dev/null)
8+
9+
if [ -x "$FASTFETCH_PATH" ]; then
10+
"$FASTFETCH_PATH"
911
fi
1012

1113
# Source global definitions

0 commit comments

Comments
 (0)