diff options
Diffstat (limited to 'vis-lua.c')
| -rw-r--r-- | vis-lua.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -2186,6 +2186,7 @@ void vis_lua_init(Vis *vis) { * - $VIS_PATH/{,lexers} * - {,lexers} relative to the binary location * - $XDG_CONFIG_HOME/vis/{,lexers} (defaulting to $HOME/.config/vis/{,lexers}) + * - /etc/vis/{,lexers} (for system-wide configuration provided by administrator) * - /usr/local/share/vis/{,lexers} (or whatever is specified during ./configure) * - package.path (standard lua search path) */ @@ -2201,6 +2202,8 @@ void vis_lua_init(Vis *vis) { home = pw->pw_dir; } + vis_lua_path_add(vis, "/etc/vis"); + const char *xdg_config = getenv("XDG_CONFIG_HOME"); if (xdg_config) { snprintf(path, sizeof path, "%s/vis", xdg_config); |
