-
Notifications
You must be signed in to change notification settings - Fork 3
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
Document how to do standard user configuration (keybindings, prompt, etc) #3
Comments
@dwierenga:
the copy+paste from my .kshrc into this post naturally does not keep the control-chars correctly displayd, so I also added a screenshot of the bindings: all no guarantees of course, but works for me :) |
@jghub Thanks for sharing :-) As we will often be confronted with various personalisations, how should we organise this ? Many feedbacks will be probably be one-liners or similar, others will be elaborated, as above. On the long term this should probably be a site on its own, but in the meantime we can collect things here. I suggest the following setup, please feel free to comment:
We keep the YAML file simple so that contributions are easy and hence encourage the community to share. Using this logic and structure, contributions can be made via pull requests(a).
Though still probably rough around the edges, this is a no brainer and can be setup darn fast. (a) An alternate approach -- which I know some members dont like, but which could provide more flexibility, would be to use sub-repositories. The advantage for the contirbutor being that he has his own repository which he maintains and manages as he likes; we only pull it in when we build our FAQ. |
I recommend creating a separate repo called "scripts" for source code that would inherit a more applicable source code license like Apache 2.0 or MIT instead of this docs repo's CC0-1.0 license. Think future "Oh My KSH!" or something similar aka a library of ksh scripts/source code. I feel that this docs repo is to provide understanding of the KornShell and our implementation of it. Explanations and elaborations of referenced scripts could occur. In my opinion, as far as displaying the contents of the docs repo, what has been done is fine--just using interconnected markups (*.md). Perhaps an easier additive approach would be to enable this repo's wiki pages instead of all the automation and human time cycle requirements listed above (not a "no brainer" to me). When the content grows beyond a certain point, perhaps all the markups get revamped into a nice website via GitHub Pages associated with the repo. |
Strong nope wrt. dir/submitter. IMHO, the doc team is responsible for collecting, eval, categorize and putting such stuff into the right documents, i.e. where users can find it easily. |
Wrt. wiki: doc repo pages can be edit via github web GUI directly as well and if github markdown is used, there is not really a need to create another construction site/maintain a wiki (at least not for this topic ;-)). |
And I think this also could just go into the ksh programming manual when we get that up and running. |
@jelmd Strong nope to GitHub pages. By experience very difficult to maintain when big and more than one person in charge of updating. Further GFM is prehistoric Markdown. The value of information is not its presence somewhere, but the ability to access it easily. While Google-generations may only believe in NoSQL data lakes, I firmly believe that indexed and structured information is the fastest path to relevant search results. Contributed content portions of information need to be structured, organised, classified to be easily accessible. Contrib directories have been in practice in Open Source projects since the very first days of Richard Stallman's initiative. They are the natural way of including third party contributions to an Open Source project. Be it documentation or code. The contents and structure of a contrib directory are managed by the package maintainers, not by the third parties. Meaning that you control what, when, and how things are included. Further you enforce a documentation scheme. Markdown for instance, is probably not the best input format: we want to focus on formal know_how snippets. Markdown is probably the output format. YAML is probably a better input candidate to enforce structure. @hyenias you pull in the licensing issue, which has to be addressed. By convention contribs are give aways, so fall under the licensing terms of the parent package. In the Git world, sub-repositories is a way of maintaining third party licenses should they not want to adopt your licensing scheme. Sub-repositories are a pain to manage. Important to remember here we are talking of documentation. Not development projects. Consequently submitted information is mostly code snippets of a couple of lines. We may be confronted, as in some KornShell books, with educational chapters that provide a full scripted example (e.g. for those who remember the famous KornShell address book), or, as was the case that triggered this issue, individuals submitting part or all of their A fair question is: does the ksh-community want to collect and share this information. IMO this is yes. Should it be no, then this can easily be housed elsewhere. |
@marcastel: From my viewpoint, I only have a limited amount of time to spend on ksh efforts. This is my choice. As such, I wish to keep things simple as they can be. I do not possess your experience. I am learning along the way. I have plenty on my plate to work on for a while. |
There's a general scarcity of information of how to do user configuration of KSH around the web (and many of the "answers" amount to "just use bash").
Compiling a standard library of examples of how to do the basic things that most users want from their shell would be a huge win. Some things this would include (in no particular order):
FPATH
, etc.The text was updated successfully, but these errors were encountered: