moved the generation of local environment variables to its own generator script

This commit is contained in:
Tobias Schmidl 2023-01-24 15:33:08 +01:00
parent fa32f1be82
commit ef6d56b2a8
4 changed files with 25 additions and 17 deletions

View file

@ -1,8 +1 @@
# Make sure we include this file only once
if [ -z $LOCAL_BIN_ALREADY_SET ];
then
export LOCAL_BIN_ALREADY_SET=1
# set PATH so it includes user's private bin if it exists
[ -d "$HOME/.local/bin" ] && PATH="$HOME/.local/bin:$PATH"
[ -d "$HOME/bin" ] && PATH="$HOME/bin:$PATH"
fi
. $HOME/.local/bin/generate-env