Created
August 18, 2021 13:18
-
-
Save debemdeboas/f5803e710d8fa24092a3fd963060b211 to your computer and use it in GitHub Desktop.
Powerline setup
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
# Source this on your ~/.bash_profile or .bashrc or .profile | |
eval "$(oh-my-posh --init --shell bash --config ~/.poshthemes/powerlevel10k_rainbow.omp.json)" |
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
Import-Module posh-git | |
Import-Module oh-my-posh | |
Set-PoshPrompt -Theme powerlevel10k_rainbow |
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
Install-Module posh-git -Scope CurrentUser | |
Install-Module oh-my-posh -Scope CurrentUser | |
Update-Module | |
# Open $PROFILE | |
code $PROFILE |
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
# install golang | |
sudo add-apt-repository ppa:longsleep/golang-backports | |
sudo apt update | |
# download oh-my-posh | |
wget https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-linux-amd64 -O /usr/local/bin/oh-my-posh | |
chmod +x /usr/local/bin/oh-my-posh | |
# download the themes | |
mkdir ~/.poshthemes | |
wget https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/themes.zip -O ~/.poshthemes/themes.zip | |
unzip ~/.poshthemes/themes.zip -d ~/.poshthemes | |
chmod u+rw ~/.poshthemes/*.json | |
rm ~/.poshthemes/themes.zip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment