Challenge: I want to collect all files I regularly use in a folder and use in gmt scripts without having to supply full/relative paths - just filename. The datadir variable sounds promising. But…
-
How do you set the
datadirvariable? This is an environment variable, right?$ gmt --show-datadir Not setor
$ gmt-config --datadir Not set -
I’ve been looking in the docs, but I can’t see any definite place for where I can look up all environment variables used by gmt and that can be set. Any know where, if it exists?
Edit:
In ConfigUserAdvancedTemplate.cmake I see
# Set share installation path [share or share/gmt${GMT_INSTALL_NAME_SUFFIX}]:
#set (GMT_DATADIR "share/gmt")
But assuming this really is the share dir and has nothing to do with the datadir that you get from --show-datadir;
$ gmt --show-sharedir
/usr/local/share