feat(dfm): install pip/python packages

This commit is contained in:
2023-09-19 08:47:45 +03:00
parent 7769af68b5
commit d61f53196d
2 changed files with 30 additions and 0 deletions

24
scripts/install-pip-packages.sh Executable file
View File

@@ -0,0 +1,24 @@
#!/usr/bin/env bash
# Install python/pip packages.
#
# shellcheck source=shared.sh
source "$HOME/.dotfiles/scripts/shared.sh"
! have pip && {
msg_err "Could not find pip, something really terrible is going on." && exit 1
}
packages=(
"libtmux"
)
for pkg in "${packages[@]}"; do
# Trim spaces
pkg=${pkg// /}
# Skip comments
if [[ ${pkg:0:1} == "#" ]]; then continue; fi
python3 -m pip install --user $pkg
echo ""
done