#oh-my-posh — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #oh-my-posh, aggregated by home.social.
-
"What Power Platform environment was my PAC CLI connected to again?" I kept asking myself that question too often, so I built a solution for it: https://github.com/jukkan/oh-my-pac
I only installed Oh My Posh into my Windows Terminal 2 days ago. If you've got any cool tips for Power Apps and M365 development related prompt customizations, feel free to share yours!
-
"What Power Platform environment was my PAC CLI connected to again?" I kept asking myself that question too often, so I built a solution for it: https://github.com/jukkan/oh-my-pac
I only installed Oh My Posh into my Windows Terminal 2 days ago. If you've got any cool tips for Power Apps and M365 development related prompt customizations, feel free to share yours!
-
@cinnamon @shanselman
How about #rainbow themes? 🌈
https://github.com/JanDeDobbeleer/oh-my-posh/discussions/7556
FYI new copilot config docs https://ohmyposh.dev/docs/installation/prompt?shell=copilot
#ohmyposh #oh-my-posh -
@cinnamon @shanselman
How about #rainbow themes? 🌈
https://github.com/JanDeDobbeleer/oh-my-posh/discussions/7556
FYI new copilot config docs https://ohmyposh.dev/docs/installation/prompt?shell=copilot
#ohmyposh #oh-my-posh -
Trick out your GitHub Copilot CLI with Oh My Posh | with Kayla Cinnamon
https://www.youtube.com/watch?v=z30sTWqcVwY
#githubcopilot #ohmyposh #cli #terminal #copilotcli #ai #commandline
-
Trick out your GitHub Copilot CLI with Oh My Posh | with Kayla Cinnamon
https://www.youtube.com/watch?v=z30sTWqcVwY
#githubcopilot #ohmyposh #cli #terminal #copilotcli #ai #commandline
-
How to fully customize Windows Terminal with Oh My Posh (themes, fonts, icons, & more) | with Kayla Cinnamon
-
How to fully customize Windows Terminal with Oh My Posh (themes, fonts, icons, & more) | with Kayla Cinnamon
-
The next episode of the #UnhandledException podcast is now live! 🎉 I'm a huge fan of #OhMyPosh, so it was amazing geeking out with the author of it - @jan! 🔥
https://unhandledexceptionpodcast.com/posts/0080-ohmyposh/ #dotnet
-
The next episode of the #UnhandledException podcast is now live! 🎉 I'm a huge fan of #OhMyPosh, so it was amazing geeking out with the author of it - @jan! 🔥
https://unhandledexceptionpodcast.com/posts/0080-ohmyposh/ #dotnet
-
So, today I've been emptying my bank account to upgrade my slightly aged RTX 2060 Basic.
I have also been installing #OhMyPosh onto my Ubuntu Server, My Raspberry Pi's and my Desktop Windows 11 machine.
I have also been playing a bit of VR Beat Saber, Half-life Alyx and just some movement games.
-
Tried the zsh shell for less than 30 seconds, and I'm already hooked! It's now my default shell across all my Linux setups—server, laptop, remote server, and WSL instances. I’m also using it with oh-my-posh and a few handy zsh plugins:
- git
- zsh-autosuggestions
- zsh-syntax-highlighting
- sudo
- colorize
- colored-man-pages
#Zsh #Linux #ShellLife #OhMyPosh #CommandLine #TechSetup #OpenSource #DevTools #TerminalTweaks #SysAdmin
- git
-
Just switched from oh-my-posh to Starship as my terminal beautifier extension. Looks nice.
-
Just switched from oh-my-posh to Starship as my terminal beautifier extension. Looks nice.
-
Inspired by this to style a Windows Terminal+PowerShell prompt like a VT320 term using your font and oh-my-posh.
Honestly I spent way too much time making it work, but it does look pretty cool.
The toolbar is an illusion, though - actually part of the prompt. I wish OMP had a way to "pin" a block at the top of the terminal.
(no I won't add the retro terminal effects in WT because it's ugly and annoying)
#RetroComputing #typography #OhMyPosh #PowerShell #WindowsTerminal #VT320
-
Inspired by this to style a Windows Terminal+PowerShell prompt like a VT320 term using your font and oh-my-posh.
Honestly I spent way too much time making it work, but it does look pretty cool.
The toolbar is an illusion, though - actually part of the prompt. I wish OMP had a way to "pin" a block at the top of the terminal.
(no I won't add the retro terminal effects in WT because it's ugly and annoying)
#RetroComputing #typography #OhMyPosh #PowerShell #WindowsTerminal #VT320
-
I fell into another hole. You see, there is no #OhMyPosh in #VoidLinux, only #StarshipPrompt. So I thought about it… And now I have styled my prompt in #Nushell itself, no other stuff necessary.
It doesn’t do anything fancy, just picks colors based on hostname and also shows status of a git directory. So 100% the same as my Oh My Posh config.
-
I fell into another hole. You see, there is no #OhMyPosh in #VoidLinux, only #StarshipPrompt. So I thought about it… And now I have styled my prompt in #Nushell itself, no other stuff necessary.
It doesn’t do anything fancy, just picks colors based on hostname and also shows status of a git directory. So 100% the same as my Oh My Posh config.
-
Having played with #OhMyPosh https://ohmyposh.dev/ under bash and zsh with mostly default settings, I kind of like the idea of a souped up #TerminalPrompt
But it can be a bit slow when the filesystem is under load.
Is #StarshipPrompt any better https://starship.rs/ ?
Or #PurePrompt https://github.com/sindresorhus/pure seems nice but minimal...
-
Having played with #OhMyPosh https://ohmyposh.dev/ under bash and zsh with mostly default settings, I kind of like the idea of a souped up #TerminalPrompt
But it can be a bit slow when the filesystem is under load.
Is #StarshipPrompt any better https://starship.rs/ ?
Or #PurePrompt https://github.com/sindresorhus/pure seems nice but minimal...
-
@ryanroberts @cabel did that nerd font glyphs issue get sorted? One of the reasons I’m looking at alternative terminals is to use #OhMyPosh with its fancy PowerLine Status style prompts
-
Switched from Powerlevel10k to OhMyPosh today...
So far, I am definitely liking the customization with OMP, but I am finding its launch times significantly reduced of iterm compared to PL10K.
Anyone using it have any ideas?
-
Because I'm in love. I am posting it here. Cause then I get to see it even if I am not on my laptop. #Kitty #OhMyPosh #Catppuccin #Linux
-
Because I'm in love. I am posting it here. Cause then I get to see it even if I am not on my laptop. #Kitty #OhMyPosh #Catppuccin #Linux
-
Ok then...
I have updated the #OhMyPosh post including mention of inclusion in the #XeroLinux Toolkit... #FOSS #Linux #OpenSource
-
Ok then...
I have updated the #OhMyPosh post including mention of inclusion in the #XeroLinux Toolkit... #FOSS #Linux #OpenSource
-
Morning all !
Some of you new to #Linux out there expressed that even with #OhMyPosh guide I wrote, you are finding it a bit complex. So I added the option to the #XeroLinux toolkit that will do it for you. #FOSS #Linux #OpenSource
-
Morning all !
Some of you new to #Linux out there expressed that even with #OhMyPosh guide I wrote, you are finding it a bit complex. So I added the option to the #XeroLinux toolkit that will do it for you. #FOSS #Linux #OpenSource
-
What I really love about #OhMyPosh is that even if installed from AUR it has its own internal updater.. Added that to post..
-
What I really love about #OhMyPosh is that even if installed from AUR it has its own internal updater.. Added that to post..
-
As promised...
#OhMyPosh a potencial replacement for the now on life support #Powerlevel10k. Check it out & enjoy the read. #FOSS #OpenSource #Linux
-
As promised...
#OhMyPosh a potencial replacement for the now on life support #Powerlevel10k. Check it out & enjoy the read. #FOSS #OpenSource #Linux
-
New #XeroLinux Toolkit update.
I just pushed the update that switches from using #PowerLevel10k in #ZSH to #OhMyPosh since the former is currently on life support. Will write an article about it soon. It's much better. #FOSS #Linux #OpenSource
-
New #XeroLinux Toolkit update.
I just pushed the update that switches from using #PowerLevel10k in #ZSH to #OhMyPosh since the former is currently on life support. Will write an article about it soon. It's much better. #FOSS #Linux #OpenSource
-
#Powershell #ohmyposh Customizando o Windows Terminal com Powershell http://dlvr.it/T93Skx via PlanetPowerShell
-
#Powershell #ohmyposh Customizando o Windows Terminal com Powershell http://dlvr.it/T93Skx via PlanetPowerShell
-
@seiyria me and Jan from #OhMyPosh have built #nightscout directly into a segment. It's already out, OSS, and if you want you can watch us build it live on my YouTube
-
@seiyria me and Jan from #OhMyPosh have built #nightscout directly into a segment. It's already out, OSS, and if you want you can watch us build it live on my YouTube
-
I spent hours trying to make #tmux use #OhMyPosh generated titles.
For some unknown reason, #vim doesn't override oh-my-posh titles. So, I configured oh-my-posh not to generate titles if I am in vim.
Well, it was the same configuration that was stopping tmux from displaying oh-my-posh generated titles.
With this set, I am ready to play with tmux. -
I like titles a lot. I tend to dislike a tool if it doesn't set the title of it's window. That is why I hardly use #neovim in windows. I haven't figured out how to make #tmux to get title from #OhMyPosh. #Zsh doesn't accept title from #OhMyPosh when it's the default shell. Yes, I use oh-my-posh. Infact, a console without it looks aweful to me.
-
#Powershell #ohmyposh Customizando o Windows Terminal com Powershell https://bit.ly/49lKINj via PlanetPowerShell
-
#Powershell #ohmyposh Customizando o Windows Terminal com Powershell https://bit.ly/49lKINj via PlanetPowerShell
-
-
-
Hello 👋 It’s been a while since I blogged, but I wanted to share with you what I worked on over the Hacktoberfest period.
For those who don’t know Hacktoberfest is where Open Source repositories and communities who are participating ask for contributions be it in the form of code pull requests, documentation, design or anything else to help that project.
For me I wanted to challenge myself a little and work on a new project or codebase that I have never worked with before, but also by contributing something that I would like to use myself day to day.
Earlier in the month I watched a video of Scott Hanselman pair programming with Jan De Dobbeleer on building a custom segment for his terminal so that he can see his blood sugar levels in real-time. Even though they at times had struggled in this livestream, it was enough to inspire me to contribute to the Oh My Posh project.
So What Did I Want To Build?
For my main Hacktoberfest contribution I wanted to build a custom segment for the open source project Oh My Posh to show the current version of Umbraco found in the current folder within my terminal prompt. As I regularly switch between different projects and different versions of Umbraco, I thought this would be a useful addition for myself and potentially any other Umbraco developers.
After deciding this is what I wanted to do, I cloned the GitHub project locally on my machine and tried to get straight to work by opening the project up in VSCode, however I soon realised that the Oh My Posh was written with Go and that I have never used or written anything with the Go language. This was problematic as I was unsure on what tooling and dependencies I needed installed on my machine.
I almost gave up on the idea of contributing and remembered what I saw in the video with Scott and Jan. The Oh My Posh project has a custom DevContainer configuration to help support new contributors such as myself and that I could easily create a GitHub CodeSpace.
Creating the GitHub CodeSpace was as simple as clicking the green Code button on the GitHub repository page and clicking the Codespaces tab to Create a new codespace.
In doing so, the GitHub CodeSpace (DevContainer) configuration would configure a machine in the cloud and open up the project inside Visual Studio Code within the browser. What it had done for me magically behind the scenes was ensure I had the tooling and dependencies for writing with Go.
So now all I had to do was read the detailed Contributing documentation in the project and watch the video back of Scott and Jan to get some pointers on what files I needed to create.
The next stumbling part of the project for me was that I was unfamiliar with the Go language and its syntax but another GitHub product to help save the day. With the GitHub Codespace I was able to install and use GitHub Copilot the AI assistant who understands code. So I was able to ask Copilot how to generate a loop or read and parse contents of an XML file, it was enough to get me started and going in the right direction with what I wanted to do.
Lots of reading, trial and error and feedback and discussions on the PR from the maintainer Jan and I managed to finally achieve what I set out to do 🎉
So I present to you my Hacktoberfest contribution…
A NEW Umbraco segment for Oh My Posh, which is now available in the latest release of Oh My Posh 🎉🚀
Here you can see the new Umbraco segment telling us the version of the Umbraco site in this folder is 12.0.1Already use Oh My Posh?
Below is the JSON needed to add the Umbraco segment into your own Oh My Posh theme file in order to display the Umbraco segment. The below snippet is in the same style as my favourite theme jandedobbeleer which is the default theme that comes from Oh My Posh.
{ "type": "umbraco", "template": " \udb81\udd49 {{ .Version }} ", "powerline_symbol": "\ue0b0", "style": "powerline", "background_templates": [ "{{ if (.Modern) }}#3544B1{{ end }}", "{{ if not (.Modern) }}#F79C37{{ end }}" ], "foreground_templates": [ "{{ if (.Modern) }}#ffffff{{ end }}", "{{ if not (.Modern) }}#000000{{ end }}" ]},How do I get my own terminal like that?
If you are like me and prefer to learn by watching than reading, then have no fear. I have got you covered with this video below, if not then carry on reading to see the steps needed to get your terminal looking a lot prettier.
VIDEO COMING SOON...
Note the following steps for this tutorial are intended for Windows users
Install Windows Terminal
If you are on Windows 11, then Windows Terminal is now part of the operating system, but if you are running Windows 10 you may need to install it from the Microsoft Store.
Install Oh My Posh
The next step is to install the prompt Oh My Posh for your chosen shell which is most likely to be Powershell as it comes with Windows.
You can install Oh My Posh from the Microsoft Store or using the command line with winget.
winget install JanDeDobbeleer.OhMyPosh -s wingetInstall a Font
The pretty terminal prompts you see with fancy icons, requires a custom patched font from NerdFonts. However it is possible to get Oh My Posh to help you install the font for you by following their documentation and running the command.
oh-my-posh font installOnce you have chosen your desired font, you will need to configure Windows Terminal to use it.
Using Oh My Posh with Powershell
Next we want to tell Powershell to use Oh My Posh as part of it’s prompt. Use the following command to open up your Powershell profile script in Notepad.
notepad $PROFILEIf it complains of an error of the file not existing then you can run this command to create the file before running the above command again.
New-Item -Path $PROFILE -Type File -ForceWith the file now open in Notepad, we need to add the following to the file and save it. After doing so restart Windows terminal and all has gone well we now have a prettier prompt in our terminal.
# Run oh-my-posh when a new powershell instance starts using the default oh-my-posh theme that shipsoh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/jandedobbeleer.omp.json" | Invoke-ExpressionAdding the Umbraco Segment
You will need to make a copy of the jandedobbeleer.omp.json theme and add in the Umbraco segment to the new copy. You can do this by running the command which will create the file jandedobbeleer.umbraco.omp.json at the root of your C drive.
oh-my-posh config export --output c:/jandedobbeleer.umbraco.omp.jsonUsing a text editor such as VSCode, we can modify this JSON file and add in our custom Umbraco segment. For me I placed the new segment after the AWS segment. If you prefer you can simply copy and paste my configuration below.
{ "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", "version": 2, "final_space": true, "console_title_template": "{{ .Shell }} in {{ .Folder }}", "blocks": [ { "type": "prompt", "alignment": "left", "segments": [ { "type": "session", "style": "diamond", "foreground": "#ffffff", "background": "#c386f1", "leading_diamond": "\ue0b6", "trailing_diamond": "\ue0b0", "template": " {{ .UserName }} " }, { "type": "path", "style": "powerline", "powerline_symbol": "\ue0b0", "foreground": "#ffffff", "background": "#ff479c", "template": " \uea83 {{ .Path }} ", "properties": { "folder_separator_icon": " \ue0b1 ", "home_icon": "~", "style": "folder" } }, { "type": "git", "style": "powerline", "powerline_symbol": "\ue0b0", "foreground": "#193549", "background": "#fffb38", "background_templates": [ "{{ if or (.Working.Changed) (.Staging.Changed) }}#FF9248{{ end }}", "{{ if and (gt .Ahead 0) (gt .Behind 0) }}#ff4500{{ end }}", "{{ if gt .Ahead 0 }}#B388FF{{ end }}", "{{ if gt .Behind 0 }}#B388FF{{ end }}" ], "leading_diamond": "\ue0b6", "trailing_diamond": "\ue0b4", "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 }} \ueb4b {{ .StashCount }}{{ end }} ", "properties": { "branch_max_length": 25, "fetch_stash_count": true, "fetch_status": true, "fetch_upstream_icon": true } }, { "type": "node", "style": "powerline", "powerline_symbol": "\ue0b0", "foreground": "#ffffff", "background": "#6CA35E", "template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ", "properties": { "fetch_version": true } }, { "type": "go", "style": "powerline", "powerline_symbol": "\ue0b0", "foreground": "#111111", "background": "#8ED1F7", "template": " \ue626 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ", "properties": { "fetch_version": true } }, { "type": "julia", "style": "powerline", "powerline_symbol": "\ue0b0", "foreground": "#111111", "background": "#4063D8", "template": " \ue624 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ", "properties": { "fetch_version": true } }, { "type": "python", "style": "powerline", "powerline_symbol": "\ue0b0", "foreground": "#111111", "background": "#FFDE57", "template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ", "properties": { "display_mode": "files", "fetch_virtual_env": false } }, { "type": "ruby", "style": "powerline", "powerline_symbol": "\ue0b0", "foreground": "#ffffff", "background": "#AE1401", "template": " \ue791 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ", "properties": { "display_mode": "files", "fetch_version": true } }, { "type": "azfunc", "style": "powerline", "powerline_symbol": "\ue0b0", "foreground": "#ffffff", "background": "#FEAC19", "template": " \uf0e7{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ", "properties": { "display_mode": "files", "fetch_version": false } }, { "type": "aws", "style": "powerline", "powerline_symbol": "\ue0b0", "foreground": "#ffffff", "background_templates": [ "{{if contains \"default\" .Profile}}#FFA400{{end}}", "{{if contains \"jan\" .Profile}}#f1184c{{end}}" ], "template": " \ue7ad {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} ", "properties": { "display_default": false } }, { "type": "umbraco", "style": "powerline", "powerline_symbol": "\ue0b0", "foreground_templates": [ "{{ if (.Modern) }}#ffffff{{ end }}", "{{ if not (.Modern) }}#000000{{ end }}" ], "background_templates": [ "{{ if (.Modern) }}#3544B1{{ end }}", "{{ if not (.Modern) }}#F79C37{{ end }}" ], "template": " \udb81\udd49 {{ .Version }} " }, { "type": "root", "style": "powerline", "powerline_symbol": "\ue0b0", "foreground": "#111111", "background": "#ffff66", "template": " \uf0ad " }, { "type": "executiontime", "style": "plain", "foreground": "#ffffff", "background": "#83769c", "template": "<transparent>\ue0b0</> \ueba2 {{ .FormattedMs }}\u2800", "properties": { "always_enabled": true } }, { "type": "status", "style": "diamond", "foreground": "#ffffff", "background": "#00897b", "background_templates": [ "{{ if gt .Code 0 }}#e91e63{{ end }}" ], "trailing_diamond": "\ue0b4", "template": "<parentBackground>\ue0b0</> \ue23a ", "properties": { "always_enabled": true } } ] }, { "type": "rprompt", "segments": [ { "type": "shell", "style": "plain", "foreground": "#ffffff", "background": "#0077c2", "template": "<#0077c2,transparent>\ue0b6</> \uf489 {{ .Name }} <transparent,#0077c2>\ue0b2</>" }, { "type": "ytm", "style": "powerline", "powerline_symbol": "\ue0b2", "invert_powerline": true, "foreground": "#111111", "background": "#1BD760", "template": " \uf167 {{ .Icon }}{{ if ne .Status \"stopped\" }}{{ .Artist }} - {{ .Track }}{{ end }} ", "properties": { "paused_icon": "\uf04c ", "playing_icon": "\uf04b " } }, { "type": "battery", "style": "powerline", "powerline_symbol": "\ue0b2", "invert_powerline": true, "foreground": "#ffffff", "background": "#f36943", "background_templates": [ "{{if eq \"Charging\" .State.String}}#40c4ff{{end}}", "{{if eq \"Discharging\" .State.String}}#ff5722{{end}}", "{{if eq \"Full\" .State.String}}#4caf50{{end}}" ], "template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}\uf295 ", "properties": { "charged_icon": "\ue22f ", "charging_icon": "\ue234 ", "discharging_icon": "\ue231 " } }, { "type": "time", "style": "diamond", "invert_powerline": true, "foreground": "#111111", "background": "#2e9599", "leading_diamond": "\ue0b2", "trailing_diamond": "\ue0b4", "template": " {{ .CurrentDate | date .Format }} " } ] } ]}Save the changes to the JSON file and run the command to edit your Powershell profile again.
notepad $PROFILEThen update the file to change the location of the config file we want to use.
oh-my-posh init pwsh --config "c:/jandedobbeleer.umbraco.omp.json" | Invoke-ExpressionAfter restarting Windows terminal you should now have a lovely pretty prompt in your terminal that can display the Umbraco version if it finds it in the current folder.
Conclusion
For me this was a fun Hacktoberfest, where I was able to challenge myself and learn a new programming language and build a useful utility to a tool I use every day.
I hope you found this useful and if you use Umbraco, I highly recommend you install and configure your terminal to make your life that bit easier.
Until next time…
-
Sometimes #winget needs to catch up with pending updates. That bit me yesterday for #OhMyPosh, but it's caught up today. Deets follow... #WindowsInsiders #WIMVP #Windows10 #windows11 https://www.edtittel.com/blog/interesting-omp-winget-gotcha-is-easily-fixed.html
-
📦 v15.3.0
Features
* path: allow coloring the folder_separator_icon on cycle
https://github.com/JanDeDobbeleer/oh-my-posh/releases/tag/v15.3.0
-
📦 v15.2.0
Features
* go: update dependencies
https://github.com/JanDeDobbeleer/oh-my-posh/releases/tag/v15.2.0
-
📦 v15.1.0
Features
* go: update to 1.20.3
https://github.com/JanDeDobbeleer/oh-my-posh/releases/tag/v15.1.0