snippetbashTip
oh-my-posh — Cross platform prompt engine for any shell. More information: <https://ohmyposh.dev/docs/installatio
Viewed 0 times
promptcommandengineclicrossplatformforoh-my-posh
Problem
How to use the
oh-my-posh command: Cross platform prompt engine for any shell. More information: <https://ohmyposh.dev/docs/installation/customize>.Solution
oh-my-posh — Cross platform prompt engine for any shell. More information: <https://ohmyposh.dev/docs/installation/customize>.Display current shell name:
oh-my-posh get shellInitialize for Bash:
eval "$(oh-my-posh init bash --config {{path/to/theme}})"Initialize for PowerShell:
oh-my-posh init pwsh --config {{path/to/theme}} | Invoke-ExpressionInitialize for Zsh:
eval "$(oh-my-posh init zsh --config {{path/to/theme}})"Enable live reloading:
oh-my-posh enable reloadDisable live reloading:
oh-my-posh disable reloadPrint debug information for troubleshooting:
oh-my-posh debugUpdate to latest version:
oh-my-posh upgradeCode Snippets
Display current shell name
oh-my-posh get shellInitialize for Bash
eval "$(oh-my-posh init bash --config {{path/to/theme}})"Initialize for PowerShell
oh-my-posh init pwsh --config {{path/to/theme}} | Invoke-ExpressionInitialize for Zsh
eval "$(oh-my-posh init zsh --config {{path/to/theme}})"Enable live reloading
oh-my-posh enable reloadContext
tldr-pages: common/oh-my-posh
Revisions (0)
No revisions yet.