aboutsummaryrefslogtreecommitdiffstats
path: root/bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash')
-rwxr-xr-xbash/.bashrc15
1 files changed, 15 insertions, 0 deletions
diff --git a/bash/.bashrc b/bash/.bashrc
index 389ebb4..90af7a1 100755
--- a/bash/.bashrc
+++ b/bash/.bashrc
@@ -23,6 +23,8 @@ case "$(uname)" in
23 usr="/usr/local" 23 usr="/usr/local"
24 ;; 24 ;;
25 *) 25 *)
26 alias ls="ls --color=auto"
27 usr="/usr"
26 ;; 28 ;;
27esac 29esac
28 30
@@ -106,6 +108,19 @@ if exists less; then
106 export PAGER="less" 108 export PAGER="less"
107fi 109fi
108 110
111if exists pip; then
112 pip() {
113 if [[ "$1" == "upgrade" ]]; then
114 outdated=$($usr/bin/pip list --outdated | awk '{ print $1 }')
115 for pkg in $outdated; do
116 $usr/bin/pip install $pkg --upgrade
117 done
118 else
119 $usr/bin/pip $@
120 fi
121 }
122fi
123
109if exists liquidprompt; then 124if exists liquidprompt; then
110 source liquidprompt 125 source liquidprompt
111fi 126fi