Created
February 26, 2023 15:14
-
-
Save smling/786106e53d0597932d29dc77da90cb3c to your computer and use it in GitHub Desktop.
Setup oh-my-posh in Ubuntu Linux
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 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