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 }}