Skip to content

Instantly share code, notes, and snippets.

@knishioka
Last active November 14, 2018 09:18
Show Gist options
  • Save knishioka/de826bb804cc0862a4e1123afc3932cc to your computer and use it in GitHub Desktop.
Save knishioka/de826bb804cc0862a4e1123afc3932cc to your computer and use it in GitHub Desktop.
set-intern-environment
# install ohmyzsh
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
sed -i -e "s/robbyrussell/simple/" ~/.zshrc
# install pyenv
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
echo '# pyenv' >> ~/.zshrc
echo 'export PYENV_ROOT=\"\$HOME/.pyenv\"' >> ~/.zshrc
echo 'export PATH=\"\$PYENV_ROOT/bin:\$PATH\"' >> ~/.zshrc
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval \"\$(pyenv init -)\"\nfi' >> ~/.zshrc
~/.pyenv/bin/pyenv install 3.6.5
~/.pyenv/bin/pyenv global 3.6.5
# set prompt and autojump
echo -e "# prompt\nexport PROMPT=\"%{\$fg_bold[blue]%}\${HOST} \$PROMPT\"" >> ~/.zshrc
echo -e "# autojump\nsource /usr/share/autojump/autojump.zsh" >> ~/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment