Last active
January 18, 2024 23:29
-
-
Save alexandremendoncaalvaro/b468a2e7410403b2506608ff12325ece to your computer and use it in GitHub Desktop.
Script to config python with pyenv and pipenv + a nice Oh-my-Zsh Shell theme at Ubuntu
This file contains 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/bash | |
set -ex | |
echo "[INFO] System Update and Upgrade.." | |
sudo apt update && sudo apt upgrade -y | |
echo "[INFO] Installing ZSH.." | |
sudo apt install -y zsh | |
echo "[INFO] Installing Powerlevel10k.." | |
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/.zsh/powerlevel10k | |
echo "[INFO] Installing Powerlevel10k autosuggestion and autocomplete plugins.." | |
git clone --depth 1 -- https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions | |
git clone --depth 1 -- https://github.com/marlonrichert/zsh-autocomplete.git ~/.zsh/zsh-autocomplete | |
echo 'source ~/.zsh/powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc | |
echo 'source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh' >> ~/.zshrc | |
echo 'source ~/.zsh/zsh-autocomplete/zsh-autocomplete.zsh' >> ~/.zshrc | |
echo "[INFO] Setting ZSH as default terminal.." | |
chsh -s $(which zsh) | |
exec zsh |
Use a Nerdfont in your terminal theme to enable the correct symbols.
https://github.com/romkatv/powerlevel10k#manual-font-installation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just copy and paste bellow commands to Ubuntu terminal:
/bin/bash -c "$(curl -fsSL https://gist.githubusercontent.com/alexandremendoncaalvaro/b468a2e7410403b2506608ff12325ece/raw/5059c662b880cd0777f4bd42f69c34c00ec068bc/config-ubuntu-py-pt1.sh)"
/bin/bash -c "$(curl -fsSL https://gist.githubusercontent.com/alexandremendoncaalvaro/6eb05914ed4183718a72edcbfd41c053/raw/b81ae70f1a8e305e702a7f8b6b86c948ce5e240e/config-ubuntu-py-pt2.sh")