Config copy, i3 install

This commit is contained in:
Fabian Ising
2017-05-24 17:31:56 +02:00
parent 7eed56c936
commit 1e2951003a
5 changed files with 20 additions and 4 deletions

View File

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