Skip to content

Instantly share code, notes, and snippets.

View a2tq's full-sized avatar

Jakub Zarychta a2tq

View GitHub Profile
$Variables = (Get-Content $args[0] | Where-Object {
$_.trim() -ne '' -and $_.trim() -notmatch '^#'
})
foreach ($Variable in $Variables) {
$Variable = $Variable -split '='
$Key = $Variable[0].trim()
$Value = $Variable[1].trim(' ', '"', "'")
[Environment]::SetEnvironmentVariable($Key, $Value)
}
@a2tq
a2tq / agnoster_old.omp.json
Last active April 17, 2026 21:11
Variation of agnoster oh-my-posh v3 theme
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"properties": {
"cache_duration": "none"