Skip to content

Instantly share code, notes, and snippets.

@smling
Created February 26, 2023 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smling/786106e53d0597932d29dc77da90cb3c to your computer and use it in GitHub Desktop.
Save smling/786106e53d0597932d29dc77da90cb3c to your computer and use it in GitHub Desktop.
Setup oh-my-posh in Ubuntu Linux
# Install oh-my-posh and add executable permission.
sudo wget https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-linux-amd64 -O /usr/local/bin/oh-my-posh
sudo chmod +x /usr/local/bin/oh-my-posh
# Setup themes and set permission.
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
# Clean up files.
rm ~/.poshthemes/themes.zip
# Setup in profile in when load terminal. (use theme bash as example.)
echo 'eval "$(oh-my-posh init bash)"' >> ~/.profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment