Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow environment variables in verbs #45

Merged
merged 3 commits into from
Mar 12, 2019
Merged

Conversation

lovasoa
Copy link
Contributor

@lovasoa lovasoa commented Mar 12, 2019

This PR implements a new feature that I find useful: environment variables in verbs.
This allows verbs to reference environment variables.

Instead of hard coding /usr/bin/nvim {file}, one can now write $EDITOR {file}. It will open the file in the default editor.

See #20

@lovasoa
Copy link
Contributor Author

lovasoa commented Mar 12, 2019

@Canop : What do you think ?

@Canop
Copy link
Owner

Canop commented Mar 12, 2019

I'm not 100% sure it's the right approach but I'll probably merge it as it seems innocuous.

@lovasoa
Copy link
Contributor Author

lovasoa commented Mar 12, 2019

Yes, allowing reference to environment variables in verbs allows better configurability, but it still does not fully solve #20, as it does not provide a fallback editor.

@lovasoa
Copy link
Contributor Author

lovasoa commented Mar 12, 2019

Anyway, it should be more widely compatible than the current hard reference to /usr/bin/nvim

@Canop Canop merged commit ae21e80 into Canop:master Mar 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants