Questions tagged [oh-my-posh]

Oh My Posh is a custom prompt engine for any shell that has the ability to adjust the prompt string with a function or variable.

https://ohmyposh.dev/

33 questions
0
votes
1 answer

I deleted localappdata from computer now I want to clean install oh my posh

I want to clean install oh-my-posh. How can I uninstall it? I actually forgot everything. I did it by seeing a youtube tutorial. I tried to find some solution online but I didn't find something that matches my problem.. or maybe it was too confusing…
0
votes
0 answers

Issue with Setting Alias in PowerShell (oh-my-posh) on Windows 11

I'm facing an issue while trying to set an alias using PowerShell (oh-my-posh) on Windows 11. I have successfully created aliases before, like opening Notepad++ using Set-Alias np path_to_notepad_exe. However, I'm having trouble creating a new…
0
votes
0 answers

oh-my-posh theme: cant identify the cause of question mark

I am very new to this, but I am trying to make my own oh-my-posh theme (basically by comparing, copying and trying sections from other themes and combining them). I am using pwsh and I am using JetBrainsMono Nerd Font. My theme works fine so far,…
Felix
  • 21
  • 7
0
votes
0 answers

git status prompt is not shown in PowerShell

function prompt { $time = Get-Date -Format "HH:mm" $location = (Get-Location -PSProvider FileSystem).Path $promptText = "[" $promptText += "$([char]27)[96m$time$([char]27)[0m " $promptText +=…
0
votes
1 answer

Oh My Posh custom theme backgound_template color being ignored

I made an Oh My Posh custom theme for my PowerShell prompt. All the code works as expected, except background_template condition is not able to set the background color when the condition is true. It correctly detects the condition as true,…
MKANET
  • 573
  • 6
  • 27
  • 51
0
votes
1 answer

How do I setup Oh My Posh inside conemu, without using powershell?

I can get it to work in powershell, but I do most of my coding/work, just for fun, using normal command prompt/batch files,etc. But can't get it to invoke the init or theme, got it to work fine on powershell. But I really would like this to work in…
crosenblum
  • 1,869
  • 5
  • 34
  • 57
0
votes
1 answer

What do different components in OhMyPosh indicate?

I recently installed Oh My Posh and was looking through the documentation to see what the different parts in the prompt indicate. Through some experiments, so far I have concluded: root - User name HelloGitty - Current folder Github symbol -…
HappyTown
  • 6,036
  • 8
  • 38
  • 51
0
votes
1 answer

How to install font for oh-my-posh in Linux VS Code bash?

I installed oh-my-posh, and got MesloLGLDZ Nerd Font installed separately (had to, because the omp font installer kept giving an error). That font is part of my system now. It appears in system fonts. My system terminal is looking great, but in VS…
toddmo
  • 20,682
  • 14
  • 97
  • 107
0
votes
1 answer

how can I install oh-my-posh in git bash windows terminal

I have installed it in PowerShell and it worked, how can I install oh-my-posh in git bash? I Have installed oh-my-posh with scoop then I added this code to .bashrc: eval "$(oh-my-posh --init --shell bash --config ~/amro.omp.json)" but unfortunately…
mohdh34m
  • 23
  • 2
  • 9
0
votes
1 answer

Add segment in oh-my-posh if folder name contains certain letters

I want to dynamically add a segment based on the name of the current directory, here e.g., the abc. If the directory name is abc, then I want to add a segment showing an icon, e.g., a house, between the git information and the blue success…
user69453
  • 1,279
  • 1
  • 17
  • 43
0
votes
1 answer

Error while trying to import 'oh-my-posh' with Import-Module in windows terminal

I installed the oh my posh module and am trying to import it with Import-Module oh-my-posh. But I'm getting the following error Downloading oh-my-posh executable for 7.36.1 Get-CimInstance : Invalid class At C:\Program…
0
votes
2 answers

Winget sql logic error 0x87af0001 sql error or missing database when trying to update or list packages

So, I have to update the windows package oh-my-posh, and I try to use the indicated command winget upgrade oh-my-posh. But the result is this: sql logic error 0x87af0001 : sql error or missing database I also get this when I try to list All the…
Francesco
  • 3
  • 1
0
votes
1 answer

Powershell can't find fzf binary in path

I have an issue with my PowerShell. Everytime I launch my PowerShell Terminal I get this error. Exception: C:\Users\user\.config\powershell\user_profile.ps1:23 Line | 23 | Import-Module PSFzf | ~~~~~~~~~~~~~~~~~~~ | Failed to find…
Knome1936
  • 53
  • 4
0
votes
2 answers

How to install themes for Oh My Posh in Powershell 5.1?

I use Powershell 5.1 daily in Windows Terminal. However, since a few days, my Oh My Posh theme stopped working, and printed an error that said it couldn't find the theme that I wanted (iterm2), and falled back to a default theme. I have removed…
-1
votes
1 answer

How to change my font in powershell using $Profile

I am trying to work on customizing my powershell 7 experience using $Profile and settings.json. The first issue I am running into is that when I call oh-my-posh init pwsh | Invoke-Expression Import-Module posh-git in $Profile to access the updated…
Eric
  • 25
  • 4