#codespaces — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #codespaces, aggregated by home.social.
-
Cheat sheet cara refresh GitHub Codespaces langsung dari browser: Restart, Rebuild Container, Full Rebuild. Plus diagram alur singkat kapan pilih yang mana.
-
Logging in to #claude code from within a codespace can be a bit of a pain because of the localhost redirect. Claude and I wrote a little client side javascript app to guide users (including me) through a process that works to generate a correct URL to complete the process. I hope someone out there finds it useful.
-
Whoever at #GitHub decided to make the period key open #Codespaces clearly does not own both a numpad and a cat.
-
Letztes Jahr um diese Zeit war das #Vibecoding mit #Cursor ja meine große Neuentdeckung.
Dieses Jahr: Kleinere, schlankere Tools wie #OSIRIS als FIS oder einzelne #FDM-Tools, die in #Github vorliegen, in #Codespaces "mal eben ausprobieren", ohne eine*n Admin mit Installation eines Testservers nerven zu müssen. Soweit ich das sehe, funktioniert das dann sehr gut, wenn ein Tool schon docker-fähig/-freundlich ist.
Dann lässt sich aber durchaus viel Spaß und Erkenntnisgewinn haben.
-
Is it just me, or are the code spaces on github almost entirely useless?
They take ages to startup and in almost all cases you'd even be faster if you first had to rent a VPS at e.g. hetzner and did the git clone there in cases where you want to e.g. rewrite a commit message or some other simple git task.
-
"GitHub Codespaces provides full development environments in your browser, and is free to use with anyone with a GitHub account. Each environment has a full Linux container and a browser-based UI using VS Code.
I found out today that GitHub Codespaces come with a GITHUB_TOKEN environment variable... and that token works as an API key for accessing LLMs in the GitHub Models collection, which includes dozens of models from OpenAI, Microsoft, Mistral, xAI, DeepSeek, Meta and more.
Anthony Shaw's llm-github-models plugin for my LLM tool allows it to talk directly to GitHub Models. I filed a suggestion that it could pick up that GITHUB_TOKEN variable automatically and Anthony shipped v0.18.0 with that feature a few hours later.
... which means you can now run the following in any Python-enabled Codespaces container and get a working llm command:"
https://simonwillison.net/2025/Aug/13/codespaces-llm/
#GitHub #Codespaces #LLMs #AI #GenerativeAI #Containers #Linux
-
Coding in The Cloud: Getting Started with GitHub Codespaces
My session recording for the GitHub Aotearoa User group is up, this session is Getting Started with GitHub Codespaces! If interested, check it out.
-
I was looking for an #IDE on #Android to do some smaller #programming tasks when I have only my tablet with me.
I tried with #Termux, but their package manager is really bad and failed to install something I needed.
I shied away from #GitHub #Codespaces, but after that bad experience, I gave it a try, and it seems to do what I want. -
Oh joy, another riveting piece on the absolutely thrilling world of base images, because everyone knows reading about #Docker is just as exciting as watching paint dry. 😴🔧 Apparently, #GitHub thinks if they cram enough #buzzwords like "Copilot" and "Codespaces" in there, you'll forget that what you're really doing is reinventing the digital wheel. 🚀💻
https://github.com/avkcode/container-tools #Copilot #Codespaces #TechHumor #HackerNews #ngated -
Test out .NET 10 Previews in Dev Containers & Codespaces in Minutes
-
Technology & Friends - Chris Ayers on Dev Containers and Codespaces with host David Giard.
https://davidgiard.com/chris-ayers-on-dev-containers-and-codespaces
#podcast #devcommunity #github #codespaces #containers #devcontainers
-
Spin up a #cloud based #development environment that emulates #GitHub #Codespaces. We define the environment using the devcontainer.json spec and establish a secure tunnel to mount your local file system on a remote server. This setup runs on #Hetzner Cloud, starts in under 5 minutes, and costs less than one-sixth the price of GitHub Codespaces. https://devcontainer.community/20250213-pulumi/
-
Pre-commit Hooks in GitHub Codespaces for Terraform IaC
These hooks serve as an early defense against common issues, ensuring code quality and consistency before changes are committed to version control.
Today, we are going to discuss pre-commit with GitHub Codespaces.
#azure #codespaces #github #git #precommit #devops #terraform #mvpbuzz
-
How would a current code environment for Python backend Developer look like?
Would you put your whole Environment on your local notebook? Like a hell-expensive MacBook with 64 GB of memory to just run Elastic/OpenSearch, a relational Database, Redis and Uvicorn as well as IDE and Browser and stuff?
Or would anyone use a cloud instance for every developer for Elastic/OS + MySQL + Redis?
Or would anyone use something like Githubs Codespace and completely work in the cloud?
Im unsure what is the best way to give developers the right tools for their job.
Any suggestions?
#github #python #dev #development #ide #elastic #Codespaces #cloud
-
Am I using #Github #Codespaces wrong?
I thought the point of creating a devcontainer.json file to specify extra bits have built when you set up a machine, and they were honoured on the creation of codespaces.
Given that #Gitpod seems to be adopting #devcontainer now, I figured I'd try Codespaces. A basic thing seems to be harder than I thought.
If you have direct experience building Codespaces, would you share a pointer on how to fix this seemingly basic thing?
https://gist.github.com/mrchrisadams/9ee981ffdcc1cef38431f51a76886098
-
Am I using #Github #Codespaces wrong?
I thought the point of creating a devcontainer.json file to specify extra bits have built when you set up a machine, and they were honoured on the creation of codespaces.
Given that #Gitpod seems to be adopting #devcontainer now, I figured I'd try Codespaces. A basic thing seems to be harder than I thought.
If you have direct experience building Codespaces, would you share a pointer on how to fix this seemingly basic thing?
https://gist.github.com/mrchrisadams/9ee981ffdcc1cef38431f51a76886098
-
Am I using #Github #Codespaces wrong?
I thought the point of creating a devcontainer.json file to specify extra bits have built when you set up a machine, and they were honoured on the creation of codespaces.
Given that #Gitpod seems to be adopting #devcontainer now, I figured I'd try Codespaces. A basic thing seems to be harder than I thought.
If you have direct experience building Codespaces, would you share a pointer on how to fix this seemingly basic thing?
https://gist.github.com/mrchrisadams/9ee981ffdcc1cef38431f51a76886098
-
Am I using #Github #Codespaces wrong?
I thought the point of creating a devcontainer.json file to specify extra bits have built when you set up a machine, and they were honoured on the creation of codespaces.
Given that #Gitpod seems to be adopting #devcontainer now, I figured I'd try Codespaces. A basic thing seems to be harder than I thought.
If you have direct experience building Codespaces, would you share a pointer on how to fix this seemingly basic thing?
https://gist.github.com/mrchrisadams/9ee981ffdcc1cef38431f51a76886098
-
Am I using #Github #Codespaces wrong?
I thought the point of creating a devcontainer.json file to specify extra bits have built when you set up a machine, and they were honoured on the creation of codespaces.
Given that #Gitpod seems to be adopting #devcontainer now, I figured I'd try Codespaces. A basic thing seems to be harder than I thought.
If you have direct experience building Codespaces, would you share a pointer on how to fix this seemingly basic thing?
https://gist.github.com/mrchrisadams/9ee981ffdcc1cef38431f51a76886098
-
Exploring the Power of Codespaces for Student Developers.
#github #students #learning #webdev #codespaces #copilot #education
https://techcommunity.microsoft.com/t5/educator-developer-blog/exploring-the-power-of-codespaces-for-student-developers/ba-p/4244670 -
We just published a new 🎥 of #JCON EUROPE 2024!
Watch Matthias Haeussler talking about '#Codespaces, #Gitpod, #Devpod ... what #cloud and container-based IDEs can do for you'Explore the evolving landscape of cloud-based integrated #development …
Watch it now: https://youtu.be/KSC-Us2si70
-
We just published a new 🎥 of #JCON EUROPE 2024!
Watch Matthias Haeussler talking about '#Codespaces, #Gitpod, #Devpod ... what #cloud and container-based IDEs can do for you'Explore the evolving landscape of cloud-based integrated #development …
Watch it now: https://youtu.be/KSC-Us2si70
-
We just published a new 🎥 of #JCON EUROPE 2024!
Watch Matthias Haeussler talking about '#Codespaces, #Gitpod, #Devpod ... what #cloud and container-based IDEs can do for you'Explore the evolving landscape of cloud-based integrated #development …
Watch it now: https://youtu.be/KSC-Us2si70
-
Do our #DuckDB #SqlTools and #PRQL Code Lens from #PRQLPro Tools work in #CodeSpaces? Yes, they do! Try them!
DuckDB Sql Tools ⥱ https://github.com/RandomFractals/duckdb-sql-tools
📥 https://marketplace.visualstudio.com/items?itemName=RandomFractalsInc.duckdb-sql-tools
PRQL Code Lens 🧐 info ⥱ https://twitter.com/TarasNovak/status/1635981882125963265
#VSCode #DataTools 🔬 🚀🚀🚀 ...
-
🥳 #Github #Codespace for @movingpandas example #notebooks are up and running:
https://github.com/movingpandas/movingpandas-examples
The setup takes a while but not longer than on #MyBinder
I found it impossible to search for devcontainer examples with #conda and #mamba, so maybe you'll find this one useful
#PartyLikeAGIScientist #python #datascience #geopandas #geoviews #MovingPandas #codespaces
-
There's more to do! Want to jump in? I'd be happy to guide you through your contribution in our #github repo. Raise your hand to help out here:
https://github.com/nunit/docs/issues/427
We even have a #devcontainer you can use locally or with #codespaces to get started quickly.
-
Ironically named randomfractals-improved-carnival... by the #GitHub #CodeSpaces as we were wrapping up our last 😆 ...
#DataTools for #VSCode users ... on GitHub & all ... #ProDataTools #RandomFractalsInc #dataWorks ... 💎💎💎 ...
-
#GitHub Models ➡️ GitHub's answer to #HuggingFace
A new generation of #AI engineers building on GitHub
🧠 Access AI #LLM directly on GitHub
🎮 #Test in #playground, code in #Codespaces
🚀 Deploy to production via #Azure
🤝 Models from #Meta, #Mistral, #Azure #OpenAI, #Microsoft
👨💻👩💻 Aims to make every developer an AI engineer
🆕 Limited public beta available now -
Push Docker Images to Azure Container Registry with GitHub Codespaces 🚀
Learn how to seamlessly pull and push Docker images from DockerHub to Azure Container Registry using GitHub Codespaces. https://luke.geek.nz/azure/push-docker-images-to-acr-using-github-codespaces/
-
Anyone getting SSL Cert errors when using #codespaces #github - I've had https://codespaces.new/NFDI4Culture/section-notebook?quickstart=1 on the front of a repo for months - and as of a couple of days ago it stopped working?
-
Try out SLMs with Ollama in GitHub Codespaces.
#ai #slm #ollama #aimodels #github #codespaces #csharp #python
https://techcommunity.microsoft.com/t5/educator-developer-blog/try-out-slms-with-ollama-in-github-codespaces/ba-p/4171837 -
-
Am I right in believing everyone has access to #GitHub #Codespaces for public projects these days?
I wanted to be able to use them for some training stuff -
CW: CW Github Superhacker
Es gibt doch bestimmt einen #Hack, um #Github #Codespaces per #SSH ohne #VScode zu benutzen.
Naja, viel Spaß bei der Suche nach dem "Hack", wenn's einfach supported ist. 🤪 Ist ja bald Wochenende.
-
Anyone use GitHub Codespaces for #RShiny dev work? Pros and cons?
#R #GitHub #Codespaces
https://youtu.be/ZUuPJOe2q1o?si=tCV1ZVrAirToRTXE -
DevPod - Codespaces but #OpenSource
"Developers can write code in any language, and run it anywhere. For example, they can test on virtual machines, or code in #Python with #VSCode running on #Docker Desktop, or in Go running in EKS. If the provider they need doesn’t exist, they can build it."
https://loft.sh/blog/introducing-devpod-codespaces-but-open-source/
#foss #codespaces #containers #kubernets #devstandard #jetbrains #googlecloud
-
Do you like VS Code #devcontainers and GitHub #codespaces, but are annoyed that you can't use them with #msdyn365bc AL development or #AzureDevOps repos? Thanks to the great work of #StefanMaron and @markphip, I can help you out: https://tobiasfenster.io/al-development-in-a-github-codespace-with-sources-in-an-azure-devops-repo
-
NY EPISODE AF CYBER2GO UDE!
* #Nissan ramt af datalæk
* #Sophos med 4000+ sårbare #firewalls
* GitHub #CodeSpaces til malwaredistributionLyt med hvor du normalt finder dine #podcasts eller på https://cyber2go.buzzsprout.com!
--
tags:
#cyber #github #CVE #cybersikkerhed #cybersec #nyhedsbriefing #cyber2go #dkmastodon #IT #fælleshjerne #teknik #malware -
What's the best #MySQL #database #cloud hosting option for occasional use by developers?
Our amazing undergraduate software engineer (formerly our high school intern) has set up #FromThePage on #Github #CodeSpaces so she doesn't have to fight with her local installation. This opens up a world of possibilities for easy collaboration, but we really need to connect the space to a (bowdlerized) copy of our production DB and portion of the filesystem.
-
🥳 #Github #Codespace for @movingpandas example #notebooks are up and running:
https://github.com/movingpandas/movingpandas-examples
The setup takes a while but not longer than on #MyBinder
I found it impossible to search for devcontainer examples with #conda and #mamba, so maybe you'll find this one useful
#PartyLikeAGIScientist #python #datascience #geopandas #geoviews #MovingPandas #codespaces
-
🥳 #Github #Codespace for @movingpandas example #notebooks are up and running:
https://github.com/movingpandas/movingpandas-examples
The setup takes a while but not longer than on #MyBinder
I found it impossible to search for devcontainer examples with #conda and #mamba, so maybe you'll find this one useful
#PartyLikeAGIScientist #python #datascience #geopandas #geoviews #MovingPandas #codespaces
-
🥳 #Github #Codespace for @movingpandas example #notebooks are up and running:
https://github.com/movingpandas/movingpandas-examples
The setup takes a while but not longer than on #MyBinder
I found it impossible to search for devcontainer examples with #conda and #mamba, so maybe you'll find this one useful
#PartyLikeAGIScientist #python #datascience #geopandas #geoviews #MovingPandas #codespaces
-
🥳 #Github #Codespace for @movingpandas example #notebooks are up and running:
https://github.com/movingpandas/movingpandas-examples
The setup takes a while but not longer than on #MyBinder
I found it impossible to search for devcontainer examples with #conda and #mamba, so maybe you'll find this one useful
#PartyLikeAGIScientist #python #datascience #geopandas #geoviews #MovingPandas #codespaces
-
DevPod - Codespaces but #OpenSource
"Developers can write code in any language, and run it anywhere. For example, they can test on virtual machines, or code in #Python with #VSCode running on #Docker Desktop, or in Go running in EKS. If the provider they need doesn’t exist, they can build it."
https://loft.sh/blog/introducing-devpod-codespaces-but-open-source/
#foss #codespaces #containers #kubernets #devstandard #jetbrains #googlecloud
-
DevPod - Codespaces but #OpenSource
"Developers can write code in any language, and run it anywhere. For example, they can test on virtual machines, or code in #Python with #VSCode running on #Docker Desktop, or in Go running in EKS. If the provider they need doesn’t exist, they can build it."
https://loft.sh/blog/introducing-devpod-codespaces-but-open-source/
#foss #codespaces #containers #kubernets #devstandard #jetbrains #googlecloud
-
DevPod - Codespaces but #OpenSource
"Developers can write code in any language, and run it anywhere. For example, they can test on virtual machines, or code in #Python with #VSCode running on #Docker Desktop, or in Go running in EKS. If the provider they need doesn’t exist, they can build it."
https://loft.sh/blog/introducing-devpod-codespaces-but-open-source/
#foss #codespaces #containers #kubernets #devstandard #jetbrains #googlecloud
-
DevPod - Codespaces but #OpenSource
"Developers can write code in any language, and run it anywhere. For example, they can test on virtual machines, or code in #Python with #VSCode running on #Docker Desktop, or in Go running in EKS. If the provider they need doesn’t exist, they can build it."
https://loft.sh/blog/introducing-devpod-codespaces-but-open-source/
#foss #codespaces #containers #kubernets #devstandard #jetbrains #googlecloud
-
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…
-
return(GiS); | Acceder a APIs ejecutándose en GitHub Codespaces a través de REST Client, Postman o cURL | https://www.returngis.net/2023/03/acceder-a-apis-ejecutandose-en-github-codespaces-a-traves-de-rest-client-postman-o-curl/ #github #codespaces #postman #curl #returngis
-
return(GiS); | Acceder a APIs ejecutándose en GitHub Codespaces a través de REST Client, Postman o cURL | https://www.returngis.net/2023/03/acceder-a-apis-ejecutandose-en-github-codespaces-a-traves-de-rest-client-postman-o-curl/ #github #codespaces #postman #curl #returngis