We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c0ddbb commit fc1945aCopy full SHA for fc1945a
lib/iex/lib/iex.ex
@@ -241,7 +241,7 @@ defmodule IEx do
241
242
# Locates and loads an .iex file from one of predefined locations
243
defp load_dot_iex(config) do
244
- path = Enum.find [".iex", "~/.iex"], File.regular?(&1)
+ path = Enum.find [".iex", "~/.iex"], fn path -> File.regular?(Path.expand(path)) end
245
if nil?(path) do
246
config
247
else
0 commit comments