Skip to content

schroenser/oh-my-posh-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Schroenser's "Oh My Posh" setup

Zsh

Install Zsh

sudo apt update
sudo apt install zsh -y

Initially configure Zsh

zsh

Set Zsh as default shell

chsh -s $(which zsh)

Make sure .profile is loaded

nano ~/.zprofile

and add

emulate sh -c '. ~/.profile'

Make sure nvm and npm work

nano ~/.zshrc

and add

export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm

Oh My Posh

Installation

Powershell

Set-ExecutionPolicy RemoteSigned
winget install JanDeDobbeleer.OhMyPosh -s winget
notepad $PROFILE

and add

oh-my-posh init pwsh --config 'https://raw.githubusercontent.com/schroenser/oh-my-posh-config/main/config.json' | Invoke-Expression

If $PROFILE is not found run

New-Item -Path $PROFILE -Type File -Force

Linux

curl -s https://ohmyposh.dev/install.sh | bash -s

Bash

nano ~/.bashrc

and add

eval "$(oh-my-posh init bash --config 'https://raw.githubusercontent.com/schroenser/oh-my-posh-config/main/config.json')"

Zsh

nano ~/.zshrc

and add

eval "$(oh-my-posh init zsh --config 'https://raw.githubusercontent.com/schroenser/oh-my-posh-config/main/config.json')"

Fonts

In an elevated PowerShell, run

oh-my-posh font install

then set the new font for the Terminal application, Visual Studio Code and IntelliJ.

Update

Powershell

winget upgrade JanDeDobbeleer.OhMyPosh -s winget

About

My oh-my-posh configuration.

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors