setup-files/ohmyposh.sh
AKP 492cd3cdce
Make all shell scripts executable
Signed-off-by: AKP <tom@tdpain.net>
2021-06-01 09:35:59 +01:00

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