https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
4 lines
130 B
Bash
4 lines
130 B
Bash
p=( $(fc-list : file | sed "s@/[^/]*: @@" | sort -u) )
|
|
IFS=:
|
|
export GDFONTPATH="${GDFONTPATH}${GDFONTPATH:+:}${p[*]}"
|
|
unset IFS p
|