A custom theme for oh-my-posh that uses the Hack font and is based on velvet.
wget https://raw.githubusercontent.com/Austrian-Web-Services/config/main/scripts/atws-shell-theme/install.sh && sudo bash install.sh && rm install.sh
add to your settings.json
:
{
"terminal.integrated.fontFamily": "Hack NF"
}
- Install oh-my-posh
Powershell
Set-ExecutionPolicy Bypass -Scope Process -Force; Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://ohmyposh.dev/install.ps1'))
Bash
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
- Install the
Hack NF
font
oh-my-posh font install Hack
- Configure your terminal to use the
Hack NF
font. Use the valueHack NF
. See the docs on how to configure your terminal.
For VSCode, add the following to your settings.json
:
{
"terminal.integrated.fontFamily": "Hack NF"
}
- Use the
atws
theme at startup
Powershell, use the theme at startup using $PROFILE
New-Item -Path $PROFILE -Type File -Force -Value "oh-my-posh init pwsh --config 'https://raw.githubusercontent.com/Austrian-Web-Services/config/main/scripts/atws-shell-theme/atws.omp.json' | Invoke-Expression"
# reload your profile
. $PROFILE
Bash, use the theme at startup using .bashrc
echo "$(oh-my-posh init bash --config 'https://raw.githubusercontent.com/Austrian-Web-Services/config/main/scripts/atws-shell-theme/atws.omp.json')" >> ~/.bashrc
# reload your profile
exec bash