Skip to content

Instantly share code, notes, and snippets.

@ideaMarcos
Last active March 1, 2024 17:42
Show Gist options
  • Save ideaMarcos/3129b57aef78131a564db016698ad8c0 to your computer and use it in GitHub Desktop.
Save ideaMarcos/3129b57aef78131a564db016698ad8c0 to your computer and use it in GitHub Desktop.
elixir aliases
alias mxclean="rm -rf deps _build .elixir_ls assets/node_modules"
alias mxcompile="mix do deps.get, format, compile"
alias mxcredo="mix credo --strict"
alias mxdepsclean="mix deps.clean --unused --unlock"
alias mxectoreset="mix ecto.drop && sleep 3 && mix ecto.reset"
alias mxectomigrate="mix ecto.migrate"
alias mxgraph="mix xref graph --format dot && dot -Tpng xref_graph.dot -o xref_graph.png"
alias mxhexoutdated="mix hex.outdated --all | grep -ve 'Up-to-date' -e 'not possible'"
alias mxiex="iex -S mix"
alias mxlocals="mix local.hex --force && mix local.rebar --force"
alias mxrunnohalt="mix run --no-halt"
alias mxsrver="mix do deps.get, format, phx.server"
alias mxstup="mix setup"
export ERL_AFLAGS="-kernel shell_history enabled -kernel shell_history_file_bytes 1024000"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment