- Nuova Guida
- Oh My Posh
- Oh My Zsh
Oh My Posh
Windows
Official website: https://ohmyposh.dev/
NerdFonts: https://www.nerdfonts.com/font-downloads
Installation (https://www.hanselman.com/blog/my-ultimate-powershell-prompt-with-oh-my-posh-and-the-windows-terminal)
Install-Module -Name Terminal-Icons -Repository PSGallery
Install-Module -Name oh-my-posh -RequiredVersion 6.17.0
Get-Module oh-my-posh
Import-Module oh-my-posh
oh-my-posh --init --shell pwsh --config jandedobbleer.omp.json | Invoke-Expression
Microsoft.PowerShell_profile.ps1
Import-Module -Name Terminal-Icons
Import-Module oh-my-posh
cd Powershell/Modules/oh-my-posh
./oh-my-posh --init --shell pwsh --config C:\Users\...\PowerShell\Modules\oh-my-posh\6.17.0\themes\ohmyposhv3-v2.json | Invoke-Expression
MacOs
taken from https://ohmyposh.dev/docs/installation/macos
- install oh-my-posh with brew
% brew install jandedobbeleer/oh-my-posh/oh-my-posh
- download the script to install all nerd fonts from https://gist.github.com/davidteren/898f2dcccd42d9f8680ec69a3a5d350e
- save it with a name like “install-nerd-fonts.sh”
- set execution permission
- run
% chmod 755 install-nerd-fonts.sh
% install-nerd-fonts.sh
- run bash with preferred theme
% oh-my-posh prompt init [bash|zsh|fish|powershell|pwsh|cmd|nu] --config ~/.mytheme.omp.json [flags]
------- or ----------
% eval "$(oh-my-posh init bash --config /usr/local/opt/oh-my-posh/themes/atomic.omp.json)"
------- or ----------
% cd $(brew --prefix oh-my-posh)/themes
% eval "$(oh-my-posh init bash --config atomic.omp.json)"
------- or zsh ----------
% eval "$(oh-my-posh init zsh --config /usr/local/opt/oh-my-posh/themes/atomic.omp.json)"
------- or ----------
% eval "$(oh-my-posh init zsh --config ~/.jandedobbeleer.omp.json)"
- put the command in the
.zshrc
file
Oh My Zsh
Go to https://ohmyz.sh/ where you can find all instructions:
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Install zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions