mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-01-26 11:14:08 +00:00
feat(dfm): install pip/python packages
This commit is contained in:
24
scripts/install-pip-packages.sh
Executable file
24
scripts/install-pip-packages.sh
Executable 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
|
||||
Reference in New Issue
Block a user