😎
Docs
  • Tamm - Docs
  • Azure
    • Sentinel KQL Samples
    • Managed Identities
    • Deploy Sentinel with Terraform
  • Docker
    • Allow standard user to interact with Docker
    • Install Docker
    • Installing and working with Traefik
    • Installing specific version of Docker
    • Deploy Guacamole
    • Traefik geoblock
    • Unpoller Prometheus UCG Ultra
  • HomeAssistant
    • HAOS install on Proxmox
    • Zigbee2MQTT
    • HAOS Reverse Proxy
    • ZBDongle-E
  • Kali
    • Enable RDP
  • Kubernetes
    • Cert manager with Cloudflare
    • On prem loadbalancer metallb
    • Nginx ingress
    • Cloudinit Rancher ubuntu
    • Rancher Ubuntu 18.04 node template
    • Velero with minio backend
    • vsphere pvc (in-tree)
    • Velero cheat sheet
    • nginx annotations examples
  • Linux
    • Expand lvm disk vmware
    • Expand lvm disk fresh install
    • Disk usage
    • flush-dns
    • Netplan config example
    • Add user in photon OS
    • SSH-Keys
    • Set timezone
    • sudo nopasswd
    • Add custom alias
    • Rocky Linux commands
  • macOS
    • Uninstall System extensions
    • 1Password Github setup
  • Microsoft 365
    • Powershell Cheat sheet
  • Portainer
    • Install Portainer
    • Add docker node
  • Powershell
    • GenericList example
    • Mixed stuff n things
    • Synopsis Template
    • Powershell Oh-my-posh
    • Powershell Sync Profile
    • Cleanup and install MS Graph module
  • Proxmox
    • Disable No Subscription notification
    • Import from vmware error
    • Proxmox commands
    • Proxmox on Intel NUC
    • Proxmox E1000
  • Terraform
    • Getting started
    • Deploy Sentinel
  • Unifi
    • Unifi Network App (migration)
    • Slow vlan throughput
    • interface-explanation
  • Windows
    • Network settings access denied
    • Windows GVLK Keys
    • Windows Server 2025
Powered by GitBook
On this page
  • oh-my-posh
  • Add
  • macOS
  • Sync profile

Was this helpful?

  1. Powershell

Powershell Oh-my-posh

oh-my-posh

My way of setting it up in Windows Terminal

  1. Follow the new install instructions https://ohmyposh.dev/docs/installation/windows

  2. Download Nerd Fonts since most themes requires it 2.1 https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/Meslo.zip 2.2 Unzip 2.3 Select all and right click -> Install for All users

  3. Create and set your profiles (This will overwrite any existing stuff you have!)

# Create profile for both PS Core, PS and ISE
$PS7path = "C:\Users\$ENV:USERNAME\Documents\PowerShell\Microsoft.PowerShell_profile.ps1"
$PS5path = "C:\Users\$ENV:USERNAME\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1"
$PS5ISEpath = "C:\Users\$ENV:USERNAME\Documents\WindowsPowerShell\Microsoft.PowerShellISE_profile.ps1"


New-Item -Path $PS7path -Force
New-Item -Path $PS5path -Force
New-Item -Path $PS5ISEpath -Force

Add

$content = @"
Import-Module posh-git
Import-Module oh-my-posh
Set-PoshPrompt -Theme slimfat
"@

Set-Content -Path $PS7path -Value $content
Set-Content -Path $PS5path -Value $content
Set-Content -Path $PS5ISEpath -Value $content
  1. Open Windows Terminal settings.json and add

"fontFace": "MesloLGM NF"

To your powershell profiles

Example settings.json can be found here https://github.com/qhrizz/Public/blob/master/Windows/Powershell/windows-terminal-settings.json

  1. Start Windows terminal. It should look something like this

macOS

  1. Install Fonts with Homebrew

brew tap homebrew/cask-fonts
brew install --cask font-hack-nerd-font
  1. Edit

mkdir /Users/USERNAME/.config/powershell (if it doesnt exist)
touch /Users/USERNAME/.config/powershell/Microsoft.PowerShell_profile.ps1
  1. Add your code. Mine is simply

# Load profile from Github
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/qhrizz/Public/master/Windows/Powershell/Profile.ps1'))
  1. If you use Iterm2, open preferences -> Profiles -> Text -> Font and search for Hack Nerd Font

And your terminal should now look like

Sync profile

PreviousSynopsis TemplateNextPowershell Sync Profile

Last updated 1 year ago

Was this helpful?

{:target="_blank"}

Sync profile
windows-terminal-oh-my-posh1.png
iterm2-oh-my-posh-font-mac1.png
iterm2-oh-my-posh-font-mac2.png