pyenv
This commit is contained in:
parent
345d414f91
commit
4fbc98324d
24
setup.sh
24
setup.sh
@ -1,13 +1,25 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
HOME=/home/coder
|
||||||
|
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install python3 python3-venv zsh
|
|
||||||
|
|
||||||
sudo curl https://pyenv.run | bash
|
sudo curl https://pyenv.run | bash
|
||||||
|
|
||||||
ln -s home/config $HOME/.config
|
ln -s ./home/config $HOME/.config
|
||||||
ln -s home/bin $HOME/bin
|
ln -s ./home/bin $HOME/bin
|
||||||
ln -s home/gitconfig $HOME/.gitconfig
|
ln -s ./home/gitconfig $HOME/.gitconfig
|
||||||
ln -s home/shell_aliases $HOME/.shell_aliases
|
ln -s ./home/shell_aliases $HOME/.shell_aliases
|
||||||
ln -s home/shell_funcs $HOME/.shell_funcs
|
ln -s ./home/shell_funcs $HOME/.shell_funcs
|
||||||
#ln -s home/zshrc $HOME/.zshrc
|
#ln -s home/zshrc $HOME/.zshrc
|
||||||
|
#
|
||||||
|
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> /home/coder/.bashrc
|
||||||
|
echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' >> /home/coder/.bashrc
|
||||||
|
echo 'eval "$(pyenv init -)"' >> /home/coder/.bashrc
|
||||||
|
|
||||||
|
export PYENV_ROOT="$HOME/.pyenv"
|
||||||
|
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
|
||||||
|
eval "$(pyenv init -)"
|
||||||
|
|
||||||
|
pyenv install 3.10
|
||||||
|
pyenv global 3.10
|
||||||
|
Loading…
Reference in New Issue
Block a user