mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 12:06:41 +00:00
This means g, pyenv, and volta are gone. And a lot of other tools previously installed with zinit are also installed with rtx now instead. This includes starship, direnv, shfmt, jq, and more.
32 lines
896 B
Bash
32 lines
896 B
Bash
#
|
|
# Python environment setup.
|
|
#
|
|
|
|
# ==============================================================================
|
|
# aliases
|
|
# ==============================================================================
|
|
|
|
alias ap="env OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES ansible-playbook"
|
|
alias av="env OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES ansible-vault"
|
|
alias mo="env OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES molecule"
|
|
|
|
# ==============================================================================
|
|
# global python package
|
|
# ==============================================================================
|
|
|
|
install_python_global_packages() {
|
|
local packages=(
|
|
'ansible'
|
|
'grip'
|
|
'molecule[docker]'
|
|
'passlib'
|
|
'yamllint'
|
|
)
|
|
|
|
local pipcmd="pip"
|
|
if command-exists pip3; then pipcmd="pip3"; fi
|
|
|
|
"$pipcmd" install --upgrade setuptools
|
|
"$pipcmd" install --upgrade "${packages[@]}"
|
|
}
|