From: Andre Ramnitz Date: Mon, 24 Mar 2025 17:53:52 +0000 (+0100) Subject: bash: don't rely on hardcoded paths (WIP) X-Git-Url: https://git.ramnitz.eu/?a=commitdiff_plain;h=3e936bdfca026a96e0ebb32ff69bf1412d6d213f;p=dotfiles.git bash: don't rely on hardcoded paths (WIP) --- diff --git a/dot-bashrc b/dot-bashrc index 5955106e..60774959 100644 --- a/dot-bashrc +++ b/dot-bashrc @@ -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 ;;