|
|
|
@ -17,11 +17,10 @@ $env.XDG_VIDEOS_DIR = $'($env.HOME)/videos'
|
|
|
|
|
|
|
|
|
|
let xdg = $env
|
|
|
|
|
| transpose name value
|
|
|
|
|
| each {|e| if $e.name =~ 'XDG_' { $e } else { null }}
|
|
|
|
|
| each {|e| {
|
|
|
|
|
| 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 | if $in =~ ':' { split row ':' } else { $e.value })
|
|
|
|
|