You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
let xdg = $env
|
|
| transpose name value
|
|
| each {|e| if $e.name =~ 'XDG_' {{
|
|
name: ($e.name | str replace 'XDG_' '' | str downcase),
|
|
value: $e.value
|
|
}} else { null }}
|
|
| reduce --fold {} {|e, memo| {
|
|
...$memo,
|
|
$e.name: $e.value
|
|
}}
|