Skip to content

Latest commit

 

History

History
31 lines (29 loc) · 899 Bytes

README.md

File metadata and controls

31 lines (29 loc) · 899 Bytes

Documentation

Have a look at https://ohmyposh.dev/docs/installation/linux

Automatic installation

curl -s https://raw.githubusercontent.com/dingsoyr/oh-my-posh/main/install.sh | bash -s

Manual installation

Install

To install Oh My Posh and put themes in spesified directory:

curl -s https://ohmyposh.dev/install.sh | bash -s -- -t /home/difi/.cache/oh-my-posh
chown -R difi:difi .cache/oh-my-posh/

Add nerd-font hack:

sudo su
cd /home/difi
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v3.1.1/Hack.zip
mkdir /usr/local/share/fonts/Hack
unzip Hack.zip -d /usr/local/share/fonts/Hack/
apt install fontconfig
fc-cache -fv
rm -rf /home/difi/Hack.zip

Add to prompt by adding to .bashrc

export PATH=$PATH:/home/difi/.local/bin
eval "$(oh-my-posh init bash --config https://raw.githubusercontent.com/dingsoyr/oh-my-posh/main/sture.omp.json)"