]> Freerunner's - dotfiles.git/commitdiff
bash: don't rely on hardcoded paths (WIP)
authorAndre Ramnitz <tux.rising@gmail.com>
Mon, 24 Mar 2025 17:53:52 +0000 (18:53 +0100)
committerAndre Ramnitz <tux.rising@gmail.com>
Mon, 24 Mar 2025 17:53:52 +0000 (18:53 +0100)
dot-bashrc

index 5955106e571641e789df1bccae60292d3f2e45b0..60774959d57d0af0a52f81cebb07905712abcc0a 100644 (file)
@@ -96,7 +96,7 @@ case $(tty) in
         test -e /usr/bin/fastfetch && command fastfetch -c "$HOME/.config/fastfetch/default.jsonc" || true
         ;;
     /dev/pts/[0-9]*)
-        test -e ~/.local/bin/base16-flavours && ~/.local/bin/base16-flavours || true
+        command -v base16-flavours > /dev/null 2>&1 && ~/.local/bin/base16-flavours || true
         clear
         test -e /usr/bin/fastfetch && command fastfetch -c "$HOME/.config/fastfetch/default.jsonc" || true
         ;;