lua - How to specify startup file for Torch REPL -
i'd define command line convenience functions run every time start torch repl. example,
function cl() os.execute('clear') end
and things of nature. how can have functions added namespace every time start repl?
i web searched "luajit|torch|trepl startup|rc file" couldn't find leads on this.
you can alias th repl take default -l parameter:
alias thnew='th -lmyadditions '
where myadditions.lua file executed placed in lua path.
Comments
Post a Comment