From ac8cccb7c62ec277531f325929c3b843e1c69e04 Mon Sep 17 00:00:00 2001 From: Vladan Popovic Date: Sat, 5 Oct 2024 23:54:17 +0200 Subject: [PATCH] bash: move python vars to .bash_profile --- dotfiles/.bash_profile | 3 +++ dotfiles/.bashrc | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/dotfiles/.bash_profile b/dotfiles/.bash_profile index 3a2afee..3c175c6 100644 --- a/dotfiles/.bash_profile +++ b/dotfiles/.bash_profile @@ -11,6 +11,9 @@ RIPGREP_CONFIG_PATH=$HOME/.ripgreprc SYSTEMD_EDITOR=$EDITOR TERM=alacritty +PYTHONDONTWRITEBYTECODE=1 +PYTHONUSERBASE=$HOME/.env/python + [[ -f ~/.bashrc ]] && . ~/.bashrc # opam configuration diff --git a/dotfiles/.bashrc b/dotfiles/.bashrc index 55d4e69..ca002cb 100644 --- a/dotfiles/.bashrc +++ b/dotfiles/.bashrc @@ -16,10 +16,6 @@ shopt -s histappend [[ -f $HOME/.bash_colors ]] && source "$HOME/.bash_colors" [[ -f $HOME/.bash_functions ]] && source "$HOME/.bash_functions" -# Set up python env. -export PYTHONDONTWRITEBYTECODE=1 -export PYTHONUSERBASE=$HOME/.env/python - # Local user bins appendpath $HOME/.local/bin appendpath $HOME/.cargo/bin