Created
March 15, 2016 20:58
-
-
Save kdiogenes/69ae86d91714750a3fd8 to your computer and use it in GitHub Desktop.
fish: direnv plugin using same event as rvm, causing it to execute first
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 init --on-event init_direnv | |
| if available direnv | |
| function __direnv_export_eval --on-variable PWD | |
| status --is-command-substitution; and return | |
| eval (direnv export fish) | |
| end | |
| else | |
| echo "📂 Please install 'direnv'!" | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment