Last active
November 22, 2017 21:11
-
-
Save Gwash3189/d2a495c28b9f4eb28f28180150bac938 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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