Skip to content

Commit

Permalink
Merge pull request #432 from thomasc/features/dot-elixirrc
Browse files Browse the repository at this point in the history
Make elixir source $HOME/.elixirrc if it exists
  • Loading branch information
José Valim committed Aug 10, 2012
2 parents b5cf149 + b045483 commit 965c519
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/elixir
Expand Up @@ -63,6 +63,8 @@ done
SELF=$(readlink_f "$0") SELF=$(readlink_f "$0")
SCRIPT_PATH=$(dirname "$SELF") SCRIPT_PATH=$(dirname "$SELF")


if [ -f "$HOME/.elixirrc" ]; then . "$HOME/.elixirrc"; fi

if [ -f "$SCRIPT_PATH/../releases/RELEASES" ] && [ -f "$SCRIPT_PATH/erl" ] if [ -f "$SCRIPT_PATH/../releases/RELEASES" ] && [ -f "$SCRIPT_PATH/erl" ]
then then
"$SCRIPT_PATH"/erl -env ERL_LIBS $ERL_LIBS:"$SCRIPT_PATH/../lib" -boot elixir -noshell $ELIXIR_ERL_OPTS $ERL -s elixir start_cli -extra "$@" "$SCRIPT_PATH"/erl -env ERL_LIBS $ERL_LIBS:"$SCRIPT_PATH/../lib" -boot elixir -noshell $ELIXIR_ERL_OPTS $ERL -s elixir start_cli -extra "$@"
Expand Down

0 comments on commit 965c519

Please sign in to comment.