Skip to content

Instantly share code, notes, and snippets.

@debemdeboas
Created August 18, 2021 13:18
Show Gist options
  • Save debemdeboas/f5803e710d8fa24092a3fd963060b211 to your computer and use it in GitHub Desktop.
Save debemdeboas/f5803e710d8fa24092a3fd963060b211 to your computer and use it in GitHub Desktop.
Powerline setup
# Source this on your ~/.bash_profile or .bashrc or .profile
eval "$(oh-my-posh --init --shell bash --config ~/.poshthemes/powerlevel10k_rainbow.omp.json)"
Import-Module posh-git
Import-Module oh-my-posh
Set-PoshPrompt -Theme powerlevel10k_rainbow
Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser
Update-Module
# Open $PROFILE
code $PROFILE
# 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