When I run the erl
shell my .erlang
file is evaluated and loads in my shell_default
module (shell_default:c(ShellDefaultFilePath).
). I can use all the functions defined in my shell_default
module directly in the shell. In a remote shell the functions from my shell_default
are not present. My remote shell (remsh) is connected to an Erlang node on a remote host via SSH port forwarding so I thought it may have been evaluating the .erlang
file on the remote server, but I verified that my local .erlang
file is evaluated by adding an io:format/2
call to the end of the file and I saw the message printed out when I start the remsh.
Why aren't my shell_default
functions not loaded in remote shells? And is there a workaround to get my shell_default
functions loaded?