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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -