#!/bin/zsh

set -eu

echo "Updating outdated global Python packages, if any"
asdf reshim python
pip list --outdated | tail -n +3 | (grep " " || [ $? = 1 ]) |
	cut -d " " -f 1 | PIP_REQUIRE_VIRTUALENV="0" xargs -n1 pip install -U
