2024-07-17 12:18:27 +00:00
|
|
|
#!/bin/env fish
|
|
|
|
begin
|
|
|
|
set -l dir (status dirname)
|
|
|
|
source "$dir/../../Scripts/software.fish"
|
|
|
|
|
|
|
|
function installSW
|
|
|
|
curl https://pyenv.run | bash
|
|
|
|
configureSW
|
|
|
|
end
|
|
|
|
|
2024-07-29 22:51:50 +00:00
|
|
|
function configureSW -V dir
|
2024-07-17 12:18:27 +00:00
|
|
|
source "$dir/../bash/profile.fish"
|
|
|
|
source "$dir/../fish/profile.fish"
|
|
|
|
|
|
|
|
begin
|
|
|
|
printf %s\n "" \
|
|
|
|
'export PYENV_ROOT="$HOME/.pyenv"' \
|
|
|
|
'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"' \
|
|
|
|
'eval "$(pyenv init -)"'
|
2024-10-06 19:25:34 +00:00
|
|
|
end | installBashProfile pyenv >/dev/null
|
2024-07-17 12:18:27 +00:00
|
|
|
|
|
|
|
if type -q fish
|
2024-10-06 19:25:34 +00:00
|
|
|
installFishProfile pyenv pyenv "pyenv init - | source"
|
2024-07-17 12:18:27 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
runInstaller $argv
|
|
|
|
end
|