Streamline installation of all further software
This commit is contained in:
parent
f1163a12c8
commit
719a9ab8ff
36 changed files with 679 additions and 9 deletions
scripts/Common/Software/pyenv
29
scripts/Common/Software/pyenv/main.fish
Normal file
29
scripts/Common/Software/pyenv/main.fish
Normal file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/env fish
|
||||
begin
|
||||
set -l dir (status dirname)
|
||||
source "$dir/../../Scripts/software.fish"
|
||||
source "$dir/../../../Common/Software/aliae/main.fish"
|
||||
|
||||
function installSW
|
||||
curl https://pyenv.run | bash
|
||||
configureSW
|
||||
end
|
||||
|
||||
function configureSW
|
||||
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 -)"'
|
||||
end | installBashProfile "pyenv" > /dev/null
|
||||
|
||||
if type -q fish
|
||||
addFishProfile "pyenv" "pyenv" "pyenv init - | source"
|
||||
end
|
||||
end
|
||||
|
||||
runInstaller $argv
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue