Skip to content

/etc/alternatives notion doesn't exist in Arch, or anything besides Ubuntu/Debian #89

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

Closed
ghost opened this issue Nov 1, 2018 · 5 comments
Labels
distro: arch enhancement New feature or request
Milestone

Comments

@ghost
Copy link

ghost commented Nov 1, 2018

howdy config should probably use something like $EDITOR

@boltgolt boltgolt added enhancement New feature or request distro: arch labels Nov 2, 2018
@boltgolt
Copy link
Owner

boltgolt commented Nov 2, 2018

$EDITOR doesn't exist in Ubuntu though, i'm open for any suggestions that work on all distros

@ghost
Copy link
Author

ghost commented Nov 2, 2018 via email

@boltgolt
Copy link
Owner

boltgolt commented Nov 3, 2018

That would hardcode nano as editor, even for Ubuntu users that have a different default. I'll add a check for /etc/alternatives/editor and run /bin/nano if it doesn't exist.

@boltgolt boltgolt added this to the Release 2.4.0 milestone Nov 3, 2018
@KelleyMcChes
Copy link
Contributor

KelleyMcChes commented Nov 3, 2018

Would it bee better to check whether the program is running on Arch or Ubuntu and then use /etc/alternatives or $EDITOR respectively? That way, people who either don't like nano or don't have nano installed can use it

@boltgolt
Copy link
Owner

boltgolt commented Nov 3, 2018

Yeah, good point. I'll keep nano as fallback so it'll go: Try /etc/alternatives > try $EDITOR > run /bin/nano/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
distro: arch enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants