chore: Add pyenv configuration to zshrc and update dependencies in config.yaml

This commit is contained in:
Menno van Leeuwen 2024-08-25 03:59:41 +02:00
parent 5db877355c
commit 101f0a80fa
Signed by: vleeuwenmenno
SSH Key Fingerprint: SHA256:OJFmjANpakwD3F2Rsws4GLtbdz1TJ5tkQF0RZmF0TRE
3 changed files with 21 additions and 1 deletions

5
.zshrc
View File

@ -98,6 +98,11 @@ elif [[ "$OSTYPE" == "darwin"* ]]; then
export SSH_AUTH_SOCK=~/Library/Group\ Containers/2BUA8C4S2C.com.1password/t/agent.sock
fi
# pyenv
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
#####################
# End of the line...#
#####################

View File

@ -110,6 +110,13 @@ aptpkgs() {
}
pipxpkgs() {
printfe "%s\n" "cyan" "Ensuring pyenv is installed..."
if [ ! -d "$HOME/.pyenv" ]; then
curl https://pyenv.run | bash
else
printfe "%s\n" "green" " - pyenv is already installed"
fi
printfe "%s\n" "cyan" "Ensuring pipx packages are installed..."
source $HOME/dotfiles/bin/helpers/pipx_packages.sh
ensure_pipx_packages_installed

View File

@ -148,3 +148,11 @@ config:
- spotify-client
- flameshot
- cmake
- libsqlite3-dev
- libudev-dev
- libncursesw5-dev
- libgdbm-dev
- libc6-dev
- libbz2-dev
- libffi-dev
- tk-dev