From d12918041f5609821e21b794198e2602e6018cab Mon Sep 17 00:00:00 2001
From: Joel Grunbaum <joelgrun@gmail.com>
Date: Tue, 19 Dec 2023 19:57:35 +0000
Subject: [PATCH] Changed pip-upgrade command for new pip version

---
 all-shells/commonshell |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/all-shells/commonshell b/all-shells/commonshell
index 0fc60fa..9372e6a 100644
--- a/all-shells/commonshell
+++ b/all-shells/commonshell
@@ -18,7 +18,7 @@
 	find ${1:-'.'} -type f -print | sed -E -n 's/.+(\..*)$/\1/pi' | sort | uniq -c | sort -g
 }
 
-alias pip-upgrade="python -m pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1  | xargs -n1 python -m pip install -U"
+alias pip-upgrade="pip --disable-pip-version-check list --outdated --format=json | python -c \"import json, sys; print('\n'.join([x['name'] for x in json.load(sys.stdin)]))\" | xargs -n1 pip install -U"
 
 #export EDITOR="/usr/bin/emacsclient -nw -a /usr/bin/vim"
 #alias ec=$EDITOR

--
Gitblit v1.9.3