Skip to content

Instantly share code, notes, and snippets.

@Khady
Last active February 22, 2018 00:57
Show Gist options
  • Save Khady/9473360258a87d8e63919b51f299c564 to your computer and use it in GitHub Desktop.
Save Khady/9473360258a87d8e63919b51f299c564 to your computer and use it in GitHub Desktop.
Update opam env after each command
function refresh_opam -e fish_postexec;
set cmd (string split " " $argv[1])
if [ $cmd[1] = "cd" ]
eval (opam env --shell=fish --readonly)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment