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 ++++---------------- liquidprompt/.lp_ps1 | 2 +- 2 files changed, 5 insertions(+), 17 deletions(-) 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 diff --git a/liquidprompt/.lp_ps1 b/liquidprompt/.lp_ps1 index 93987bb..c17806a 100644 --- a/liquidprompt/.lp_ps1 +++ b/liquidprompt/.lp_ps1 @@ -22,7 +22,7 @@ # Remember that most features come with their corresponding colors, # see the README. -LP_PS1="[\d][\t]\u on \h\n\w${LP_VCS} ${LP_MARK}" +LP_PS1="[\d][\t]\u on \h\n\w${LP_VENV}${LP_VCS} ${LP_MARK}" LP_TITLE=$(_lp_title $PS1) PS1="${LP_TITLE}${PS1}" -- cgit v1.2.3