aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbash/.bashrc20
-rw-r--r--liquidprompt/.lp_ps12
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
146 export PAGER="less" 146 export PAGER="less"
147fi 147fi
148 148
149# Pip upgrade script 149# Set the virtualenv parameters
150if exists pip; then 150if exists virtualenvwrapper.sh; then
151 pip() { 151 export WORKON_HOME=$HOME/.virtualenvs
152 if [[ "$1" == "upgrade" ]] || [[ "$1" == "update" ]]; then 152 source $use/bin/virtualenvwrapper.sh
153 outdated=$($usr/bin/pip list --outdated | awk '{ print $1 }')
154 for pkg in $outdated; do
155 $usr/bin/pip install $pkg --upgrade
156 done
157
158 if [[ -z "$outdated" ]]; then
159 echo "No updates found"
160 fi
161 else
162 $usr/bin/pip $@
163 fi
164 }
165fi 153fi
166 154
167# Start gnome-keyring-daemon 155# 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 @@
22# Remember that most features come with their corresponding colors, 22# Remember that most features come with their corresponding colors,
23# see the README. 23# see the README.
24 24
25LP_PS1="[\d][\t]\u on \h\n\w${LP_VCS} ${LP_MARK}" 25LP_PS1="[\d][\t]\u on \h\n\w${LP_VENV}${LP_VCS} ${LP_MARK}"
26 26
27LP_TITLE=$(_lp_title $PS1) 27LP_TITLE=$(_lp_title $PS1)
28PS1="${LP_TITLE}${PS1}" 28PS1="${LP_TITLE}${PS1}"