Created
May 13, 2021 04:09
-
-
Save CUEICHI/cf28a1a369244202268ef9c9cc40c4a9 to your computer and use it in GitHub Desktop.
pyenv rbenv nodenv と texliveの path 設定
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # python | |
| curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash | |
| echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.profile | |
| echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.profile | |
| echo 'eval "$(pyenv init --path)"' >> ~/.profile | |
| #echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bashrc | |
| echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.zshrc | |
| # Ruby | |
| curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer | bash | |
| echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile | |
| echo 'eval "$(rbenv init -)"' >> ~/.profile | |
| # nodenv | |
| curl -fsSL https://raw.githubusercontent.com/nodenv/nodenv-installer/master/bin/nodenv-installer | bash | |
| echo 'export PATH="$HOME/.nodenv/bin:$PATH"' >> ~/.profile | |
| echo 'eval "$(nodenv init -)"' >> ~/.profile | |
| # Texlive path | |
| sudo mkdir /usr/local/texlive/ | |
| sudo chown $USER /usr/local/texlive/ | |
| echo "# texlive path" >> ~/.profile | |
| echo "export MANPATH=$MANPATH:/usr/local/texlive/2021/texmf-dist/doc/man" >>~/.profile | |
| echo "export INFOPATH=$INFOPATH:/usr/local/texlive/2021/texmf-dist/doc/info" >>~/.profile | |
| echo "#export PATH=$PATH:/usr/local/texlive/2021/bin/aarch64-linux #ARMの場合" >> ~/.profile | |
| echo "export PATH=\$PATH:/usr/local/texlive/2021/bin/x86_64-linux #Intelの場合" >> ~/.profile | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment