Skip to content

Instantly share code, notes, and snippets.

@Gwash3189
Last active November 22, 2017 21:11
Show Gist options
  • Save Gwash3189/d2a495c28b9f4eb28f28180150bac938 to your computer and use it in GitHub Desktop.
Save Gwash3189/d2a495c28b9f4eb28f28180150bac938 to your computer and use it in GitHub Desktop.
defmodule ZshRc do
def read do
"./.zshrc" |> File.read |> handle_result
end
def handle_result({:ok, value}) do
value
end
def handle_result({:error, reason}) do
IO.inspect(reason)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment