diff options
author | Nick Hynes <nhynes@mit.edu> | 2016-12-15 22:16:54 +0300 |
---|---|---|
committer | Nick Hynes <nhynes@mit.edu> | 2016-12-15 22:16:54 +0300 |
commit | 14e89d0590bff068113c92774b489219ee830815 (patch) | |
tree | e573a466352cfb35f919b02e676250b2b73163d7 | |
parent | dd1f23870b85db6b9ae4afb5fcf4563c6add8ef1 (diff) |
Allow executing file before trepl starts
-rw-r--r-- | th | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -104,6 +104,11 @@ end local repl = require 'trepl' local col = require 'trepl.colorize' +-- load startup file +if os.getenv('TREPLSTARTUP') and not (interactive or statement) then + dofile(os.getenv('TREPLSTARTUP')) +end + -- load gfx env? if lgfx then local ok = pcall(require, 'gfx.js') |