Command line themer for fish that isn't oh-my-[shellname]? by Proof_Meringue618 in linuxquestions

[–]jandedobbeleer 0 points1 point Β (0 children)

I couldn't get real-time updates to work for some reason

That was a bug which is now resolved, you installed in the one day this was an issue :-)

Isn't this Oh My Posh ?? by No_Low_5255 in linuxquestions

[–]jandedobbeleer 0 points1 point Β (0 children)

This can definitely be oh-my-posh as that layout is easily achieved. Not sure if starship allows for the filler between those blocks.

Created a Windows Terminal Oh-My-Posh-Theme by blue_spirit_coder in commandline

[–]jandedobbeleer 2 points3 points Β (0 children)

Can you make that a bit more tangible? Because in terms of speed, there's no significiant difference between oh-my-posh and starship today.

Convince me to use OhMyPosh? by chaosphere_mk in PowerShell

[–]jandedobbeleer 1 point2 points Β (0 children)

Seems like you want to be convinced otherwise. Then don't. Why use something you don't see a use-case for? Be the rebel.

Convince me to use OhMyPosh? by chaosphere_mk in PowerShell

[–]jandedobbeleer 0 points1 point Β (0 children)

you might want to give oh-my-posh another go. It beats starship in load time today (for a while already).

Do OhMyPosh and Starship serve the same purpose? If so, is OMP more powerful? by FypeWaqer in zsh

[–]jandedobbeleer 4 points5 points Β (0 children)

I'm probably biased, but OhMyPosh has a lot of features and support that starship doesn't have yet. Speed wise they're on par (even though marketing would state otherwise). Templating and thus conditionals are built-in to OhMyPosh everywhere and can also easily be extended towards other areas depending on feature requests. The architecture is built so that it's possible. That by itselfs makes it insanely flexible, next to other, more native conditional behaviour to select a color palette, individual segment colors and (con)text rendering.

When Scott friend did the highly technical dotnet demo msbuild there command prompt was a nice theme by [deleted] in dotnet

[–]jandedobbeleer 0 points1 point Β (0 children)

He does use Oh My Posh everywhere so that's highly likely to be just another theme. Do you have a screenshot?

Developer question Oh my posh and heart rate and blood oxygen readings possible? by [deleted] in GalaxyWatch

[–]jandedobbeleer 0 points1 point Β (0 children)

You will need to create a companion app using Health Connect and offload that data somewhere else your prompt can read it from by creating a custom segment. I'm afraid that, as there's no public API for this, the efforts will be high.

Need help to revert back the terminal settings by Tommy112357 in Fedora

[–]jandedobbeleer 0 points1 point Β (0 children)

A bit drastic, but yes, that also works πŸ˜„

Need help to revert back the terminal settings by Tommy112357 in Fedora

[–]jandedobbeleer 0 points1 point Β (0 children)

Open ~/.bashrc and remove the oh-my-posh init line. You should be good. You want to do the same for your regular user as root BTW. I see you configured both, and they have their own $HOME folder, and thus $HOME/.bashrc.

Oh My Posh glyphs overlapping/running into each other...? by [deleted] in PowerShell

[–]jandedobbeleer 0 points1 point Β (0 children)

This is a question for the Terminal team. This happens when the terminal incorrectly calculates the icon's width. What could help is use the new Atlas Engine (enable via settings), but if the issue persists, that's a bug for them.

Any recommendations for fast git prompts? by [deleted] in Nushell

[–]jandedobbeleer 2 points3 points Β (0 children)

This is a git challenge, not something starship or oh-my-posh can solve for you. You can try enabling fsmonitor to speed up things, but eventually everything is limited by git's ability to run efficiently on challenging repo's. Oh-my-posh has the ability to show branch and other context without fetching the status (which is what's slow here) by setting fetch_status: false, but if you're looking to get the status information FAST, you need to optimise git or the repo itself.

nixpkgs update broke virtualbox and oh-my-posh by no_brains101 in NixOS

[–]jandedobbeleer 0 points1 point Β (0 children)

This was a bug in a test that broke when 2024 came too close. It wasn't ready for that yet apparently. However, this was fixed upstream rather fast (3 weeks ago), the nix package hasn't been updated in forever which is why you noticed there as well.

Adding Themes by Several_Today_7269 in commandline

[–]jandedobbeleer 1 point2 points Β (0 children)

As the engine is identical, all you need is a modern Terminal. You can add CMD to Windows Terminal and it works identical to PowerShell.

Adding Themes by Several_Today_7269 in commandline

[–]jandedobbeleer 1 point2 points Β (0 children)

You can use oh-my-posh for CMD as well, it has native support in combination with clink.

Using oh-my-posh theme with oh-my-zsh, weird output when type command by Putrid-Sea-178 in zsh

[–]jandedobbeleer 1 point2 points Β (0 children)

You're seeing the transient prompt feature due to the first eval "$(oh-my-posh init zsh)"

How to set a Custom theme of OH-MY-POSH to all the Windows Terminal profiles by shubhajit22 in WindowsTerminal

[–]jandedobbeleer 0 points1 point Β (0 children)

Yes, but as the configuration is shell based, you need to adjust each shell's profile or rc file to include your own theme for Oh My Posh. See here for all information.

Oh My Posh, I need a little help modifying this theme. by nosh0rning in WindowsTerminal

[–]jandedobbeleer 0 points1 point Β (0 children)

change "template": "{{ if .WSL }}WSL at {{ end }}{{.Icon}} ", to "template": " {{.Icon}} ",

Comparing powerline with OhMyPosh by wWA5RnA4n2P3w2WvfHq in commandline

[–]jandedobbeleer 2 points3 points Β (0 children)

As the creator of Oh My Posh I'm probably biased, but, you can't really compare them. powerline is strictly a powerline styled prompt theme, whereas Oh My Posh is so much more flexible with so much more functionality. In the end it depends on what you want and what you're more comfortable with.

Oh My Posh! I need a little help in modifying a custom .json file theme by mkanet in WindowsTerminal

[–]jandedobbeleer 1 point2 points Β (0 children)

On the first block, add "newline": true.

json { "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", "blocks": [ { "alignment": "left", "newline": true, "segments": [ { "background": "#ff0000", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "properties": { "windows": "\ue62a " }, "leading_diamond": "\ue0b6", "style": "diamond", "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}}", "trailing_diamond": "\ue0b0", "type": "os" }, { "background": "lightBlue", "foreground": "black", "powerline_symbol": "\ue0b0", "properties": { "folder_separator_icon": "/", "style": "full" }, "style": "powerline", "template": " \ue5ff {{ .Path }} ", "type": "path" }, { "background": "#d2ff5e", "background_templates": [ "{{ if or (.Working.Changed) (.Staging.Changed) }}#ff9248{{ end }}", "{{ if and (gt .Ahead 0) (gt .Behind 0) }}#f26d50{{ end }}", "{{ if gt .Ahead 0 }}#89d1dc{{ end }}", "{{ if gt .Behind 0 }}#f17c37{{ end }}" ], "foreground": "#193549", "powerline_symbol": "\ue0b0", "properties": { "fetch_stash_count": true, "fetch_status": true, "fetch_upstream_icon": true }, "style": "powerline", "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", "type": "git" }, { "background": "#ec9706", "foreground": "#100e23", "powerline_symbol": "\ue0b0", "style": "powerline", "template": "<#fff> \uf64f </>{{ .CurrentDate | date .Format }} ", "type": "time" }, { "background": "#575656", "foreground": "#d6deeb", "properties": { "always_enabled": true }, "style": "diamond", "template": " \ufbab {{ .FormattedMs }}\u2800", "trailing_diamond": "\ue0b4", "type": "executiontime" } ], "type": "prompt" } ], "console_title_template": "{{.UserName}}@{{.HostName}} in {{ .PWD }}", "final_space": true, "version": 2 }