From 558ffdf39689e1c5e201faa4a7e26a1fb45e0f75 Mon Sep 17 00:00:00 2001 From: Tom van der Lee Date: Sun, 2 Aug 2015 17:01:17 +0200 Subject: Added pip update as alias of pip upgrade --- bash/.bashrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bash') diff --git a/bash/.bashrc b/bash/.bashrc index 90af7a1..bfba031 100755 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -110,11 +110,15 @@ fi if exists pip; then pip() { - if [[ "$1" == "upgrade" ]]; then + 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 -- cgit v1.2.3