From d4581693cc0c6120c98c1ee2f99122b9634bc71e Mon Sep 17 00:00:00 2001 From: Tom van der Lee Date: Fri, 4 Sep 2026 15:18:15 +0200 Subject: Fix sourcing non executables --- bash/.bashrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bash/.bashrc b/bash/.bashrc index bb66b40..9ba47fd 100755 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -191,7 +191,7 @@ fi # Fancy bash prompt if exists liquidprompt; then - source $(which liquidprompt) 2> /dev/null + source liquidprompt 2> /dev/null elif [ -f "/usr/share/liquidprompt/liquidprompt" ]; then source /usr/share/liquidprompt/liquidprompt 2> /dev/null elif [ -f "/opt/homebrew/share/liquidprompt" ]; then @@ -266,7 +266,9 @@ fi if exists pyenv; then eval "$(pyenv init -)" - eval "$(pyenv virtualenv-init -)" + if pyenv commands | grep -qx virtualenv-init; then + eval "$(pyenv virtualenv-init -)" + fi export PATH="$PATH:$(pyenv root)/shims" fi -- cgit v1.3