An Atom in Elixir (and Erlang) is a literal, a constant with a name. Elixir atom is similar to Ruby’s symbol in that the VM checks if it’s already defined in memory and reuses it, instead of re-evaluating it (like in the case of strings).
iex shell starts, it looks like a file
.iex.exs. It starts looking
at the current directory and if it doesn’t find one, it looks at a global one
~/.iex.exs). All the code inside the file is
loaded and added to the
IEx shell’s context, so all the modules imported,
aliases, required, and bindings from the file are accessible inside the shell.
The terminal command
!$ allows us to to retrieve the previous command in
a terminal session. This allows us to reference the previous commands and append/
prepend if to a new command instead of using ↑ and ↓ arrow keys.
Using relative line numbers is a great way to make navigation in
efficient, however, it can be a pain while pairing or when you need absolute
line numbers. One way of making this process easier is to create a key
binding which toggles relative line numbers. It can be done by adding the
following function to your