From 8248b352ca5edd27f02866095aee092b2adcc356 Mon Sep 17 00:00:00 2001 From: jason Date: Fri, 8 Sep 2023 16:39:39 -0600 Subject: updates for freebsd --- bash/.bashrc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'bash') diff --git a/bash/.bashrc b/bash/.bashrc index 4d9ecff..410cba8 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -57,7 +57,9 @@ if [ -x $KERL ]; then export KERL_CONFIGURE_OPTIONS="--without-javac --with-dynamic-trace=systemtap" fi fi -source ~/.virtualenvs/erlang/activate +if [ -d $HOME/.virtualenvs/erlang ]; then + source ~/.virtualenvs/erlang/activate +fi ERL=`which erl` if [ -x $ERL ]; then # +pc unicode Output strings as unicode by default @@ -145,6 +147,10 @@ if [ -x /opt/homebrew/bin/pyenv ]; then eval "$(pyenv init --path)" eval "$(pyenv init -)" fi +if [ -x /usr/local/bin/pyenv ]; then + # FreeBSD, probably linux + eval "$(pyenv init -)" +fi __workon() { source ~/.virtualenvs/$1/bin/activate -- cgit v1.2.1