Last active
February 22, 2018 00:57
-
-
Save Khady/9473360258a87d8e63919b51f299c564 to your computer and use it in GitHub Desktop.
Update opam env after each command
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
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