From 9b3cd2462a48ca942309e24f511db2ea1fddc95b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Mon, 21 Mar 2016 22:21:02 +0100 Subject: vis: also lookup Lua support files relative to the binary location This simplifies deployment of vis on remote systems without root access. The idea is to extract a statically linked binary together with the lexer syntax files into some directory, adjust $PATH to include it and have everything just work. For now this uses /proc/self/exe and thus only works on Linux based systems. --- lexers/README.md | 1 + 1 file changed, 1 insertion(+) (limited to 'lexers') diff --git a/lexers/README.md b/lexers/README.md index a7d25c2..34ca587 100644 --- a/lexers/README.md +++ b/lexers/README.md @@ -9,6 +9,7 @@ based lexers from the [Scintillua](http://foicica.com/scintillua/) project. Vis searches the lexers in the following locations: * `$VIS_PATH/lexers` + * `./lexers` relative to the binary location (using `/proc/self/exe`) * `$XDG_CONFIG_HOME/vis/lexers` * `/usr/local/share/vis/lexers` * `/usr/share/vis/lexers` -- cgit v1.2.3