PortValhalla/scripts/Common/Config/pyenv/install.sh

14 lines
364 B
Bash
Raw Normal View History

2023-05-06 12:31:57 +00:00
#!/bin/bash
pushd "${BASH_SOURCE%/*}" > /dev/null;
. "../fish/profile.sh";
. "../bash/profile.sh";
2023-05-06 12:31:57 +00:00
{
echo 'export PYENV_ROOT="$HOME/.pyenv"';
echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"';
echo 'eval "$(pyenv init -)"';
2024-04-04 14:52:29 +00:00
} | addBashProfile "pyenv";
2023-06-09 09:24:53 +00:00
addFishProfile "pyenv" "pyenv" "pyenv init - | source";
popd > /dev/null;