Posts

Showing posts from July, 2011

erlang module load path how to ERL_LIBS

erl -env ERL_LIBS "/my/path/to/module" export ERL_LIBS=/my/path/to/module erl -pa /my/path/to/module erlc -o /dir/to/save/compiled/file mymodule.erl NOTE:Modules must reside in a file with the same name as the file. NOTE:the lib path will not load if it doesn't contain a ebin dir Example:   /Users/joe/mymodule/ebin $ export ERL_LIBS=/Users/joe/mymodule; erl You can test to see if the path loaded with >code:get_path().

Bash has a Vi mode

Must be a very well kept secret "BASH HAS A VI MODE". set -o vi set -o emacs How I have never come across this before is beyond me http://www.catonmat.net/blog/bash-vi-editing-mode-cheat-sheet/ http://www.catonmat.net/download/bash-vi-editing-mode-cheat-sheet.pdf