16 lines
586 B
Bash
Executable file
16 lines
586 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# 2021-05-27 - for use on Bash
|
|
|
|
sudo 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
|
|
|
|
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
|
|
|
|
# Add init to your Bash profile
|
|
echo 'eval "$(oh-my-posh --init --shell bash --config ~/.poshthemes/agnoster.omp.json)"' >> ~/.bashrc
|
|
|