nixpkgs/pkgs/tools/graphics/gnuplot/set-gdfontpath-from-fontcon...

5 lines
130 B
Bash

p=( $(fc-list : file | sed "s@/[^/]*: @@" | sort -u) )
IFS=:
export GDFONTPATH="${GDFONTPATH}${GDFONTPATH:+:}${p[*]}"
unset IFS p