From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id AJ7MJlq2C18OdwAA0tVLHw (envelope-from ) for ; Mon, 13 Jul 2020 01:18:18 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id +AywIlq2C19hDQAA1q6Kng (envelope-from ) for ; Mon, 13 Jul 2020 01:18:18 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 03B0494062E for ; Mon, 13 Jul 2020 01:18:17 +0000 (UTC) Received: from localhost ([::1]:39882 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jun6m-0001sp-Td for larch@yhetil.org; Sun, 12 Jul 2020 21:18:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55462) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jun6e-0001sg-Ap for guix-devel@gnu.org; Sun, 12 Jul 2020 21:18:08 -0400 Received: from imta-35.everyone.net ([216.200.145.35]:55488 helo=imta-38.everyone.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jun6c-0001Y6-7W for guix-devel@gnu.org; Sun, 12 Jul 2020 21:18:07 -0400 Received: from pps.filterd (omta001.sj2.proofpoint.com [127.0.0.1]) by imta-38.everyone.net (8.16.0.27/8.16.0.27) with SMTP id 06D1I28N021367; Sun, 12 Jul 2020 18:18:02 -0700 X-Eon-Originating-Account: equUGFu7HV3PWY0K2OxLbMhLDPk3r9y1LDHsQvGbt9Q X-Eon-Dm: m0116293.ppops.net Received: by m0116293.mta.everyone.net (EON-AUTHRELAY2 - 53b92fa8) id m0116293.5ef25211.1b3506; Sun, 12 Jul 2020 18:18:01 -0700 X-Eon-Sig: AQMHrIJfC7ZJWFmLDwIAAAAC,974099bf38b6cbe33d6a7a3021d940de X-Eip: GoMwPVgA5Cj0K1p5HrBLjZycVVwJACQS-n8YFOOF7iw Date: Mon, 13 Jul 2020 03:17:51 +0200 From: Bengt Richter To: Jonathan Brielmaier Subject: Re: How to package inputrc Message-ID: <20200713011751.GA48314@LionPure> References: <59c5cfc9-e39e-8038-f745-7f14480d0f82@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <59c5cfc9-e39e-8038-f745-7f14480d0f82@web.de> User-Agent: Mutt/1.10.1 (2018-07-13) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-07-12_14:2020-07-10, 2020-07-12 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1034 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2006250000 definitions=main-2007130007 Received-SPF: pass client-ip=216.200.145.35; envelope-from=bokr@oz.net; helo=imta-38.everyone.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/12 21:18:03 X-ACL-Warn: Detected OS = Linux 3.x [generic] [fuzzy] X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Bengt Richter Cc: Guix-devel Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -0.51 X-TUID: GueLhMAlUwUE On +2020-07-13 00:01:32 +0200, Jonathan Brielmaier wrote: > Hi folks, > > an annoying thing for me in a default Guix installation is the lack of > an inputrc definition[0]. So while using the shell I miss going through > my bash history via "page up"/"page down" keys. > > To tackle this issue I created a simple inputrc and copied to > `/etc/inputrc`: > ``` What hat are you wearing? Admin or user as logged in, or user as user of a particular app, or? Of course, as owner of your machine, you may do as you please, if you can ;-) But IMO user preferences should stay out of the root directory, like /etc/... so I would put your mods in $HOME/.inputrc, as your ArchLinux referece [0] discusses, or maybe under ~/.emacs.d/ if it's just emacs you want to tweak. As you say, other distros provide defaults, but unless you want to modify everyone's experience who logs in on the machine, I would say stick to $HOME/.something, where something IMO should not be more global in effect than need be. Think twice about anything you need sudo to accomplish :) I think it is a kind of namespace hygiene problem, when it is not clear who gets to define names and what they do under what circumstances. My 2ยข ;-) > # alternate mappings for "page up" and "page down" to search the history > "\e[5~": history-search-backward > "\e[6~": history-search-forward > ``` > > In order to achieve this more elegant I could write a simple service to > copy the file to /etc. Another option would be a small package. > > I think other distros provide one in the default, basic installation: > ArchLinux[1], Debian[2] and openSUSE has even a longer one. > > Are others missing that too? What do you think? > > Good night > Jonathan > > [0] https://wiki.archlinux.org/index.php/Readline > [1] > https://git.archlinux.org/svntogit/packages.git/plain/trunk/inputrc?h=packages/readline > [2] https://packages.debian.org/buster/all/readline-common/filelist > -- Regards, Bengt Richter