[all] Link examples files (instead of cp)

This commit is contained in:
Fabian Ising
2024-12-20 12:47:54 +01:00
committed by fabian.ising@sit.fraunhofer.de
parent 9521ed086c
commit d6fd2f6d61
3 changed files with 10 additions and 17 deletions

View File

@@ -1,17 +1,10 @@
export WORKON_HOME=~/python-envs
export VIRTUALENVWRAPPER_VIRTUALENV=/usr/bin/virtualenv
mkdir -p $WORKON_HOME
source /usr/share/virtualenvwrapper/virtualenvwrapper.sh
function workon() {
if ! { [ "$TERM" = "screen" ] && [ -n "$TMUX" ]; } then
if ! { [ -z "$1" ] } then
tmux setenv VIRTUAL_ENV "$1"
fi
source /usr/share/virtualenvwrapper/virtualenvwrapper.sh
workon "$@"
fi
}
if [ -n "$VIRTUAL_ENV" ]; then
workon $VIRTUAL_ENV
if [[ -f "$VIRTUAL_ENV/bin/activate" ]]; then
source $VIRTUAL_ENV/bin/activate;
fi
fi