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

Split tldr/linux.txt into distribution-specific files #62

Open
khughitt opened this issue Feb 13, 2019 · 0 comments
Open

Split tldr/linux.txt into distribution-specific files #62

khughitt opened this issue Feb 13, 2019 · 0 comments

Comments

@khughitt
Copy link

The current linux.txt includes commands that are geared towards Debian/Ubuntu installations (e.g. apt-get), but are not useful in other distros such as Arch, Redhat, etc.

Rather than assume one particular flavor of Linux, instead it might be useful to try and detect which flavor of Linux the user is using, and then load a distro-specific template, if one exists. If not, then fall back on a distro-agnostic file which contains only commands that do not depend on the specific distro the user is using (so no package manager commands, for example).

To avoid redundancy, you might consider adding a second layer of "common" commands -- this way you could load a linux_common.txt + linux_<distro>.txt (if the distro is known and supported).

Interested users of alternative distros could then submit PR's with distro-specific commands.

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

No branches or pull requests

1 participant