From ddd8ae646f9b80184c81574b5d8c564a07722114 Mon Sep 17 00:00:00 2001 From: Tom van der Lee Date: Sun, 11 Oct 2015 12:29:52 +0200 Subject: Updated bash an liquidprompt for python virtual environments --- bash/.bashrc | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) (limited to 'bash/.bashrc') diff --git a/bash/.bashrc b/bash/.bashrc index 73e42a9..8f5c09a 100755 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -146,22 +146,10 @@ if exists less; then export PAGER="less" fi -# Pip upgrade script -if exists pip; then - pip() { - if [[ "$1" == "upgrade" ]] || [[ "$1" == "update" ]]; then - outdated=$($usr/bin/pip list --outdated | awk '{ print $1 }') - for pkg in $outdated; do - $usr/bin/pip install $pkg --upgrade - done - - if [[ -z "$outdated" ]]; then - echo "No updates found" - fi - else - $usr/bin/pip $@ - fi - } +# Set the virtualenv parameters +if exists virtualenvwrapper.sh; then + export WORKON_HOME=$HOME/.virtualenvs + source $use/bin/virtualenvwrapper.sh fi # Start gnome-keyring-daemon -- cgit v1.2.3