From nobody Wed Oct 20 12:00:22 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id D4FFF1803EFC; Wed, 20 Oct 2021 12:00:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HZ8Lt5jQsz3jg2; Wed, 20 Oct 2021 12:00:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A402B27126; Wed, 20 Oct 2021 12:00:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 19KC0MTI046086; Wed, 20 Oct 2021 12:00:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 19KC0MJq046085; Wed, 20 Oct 2021 12:00:22 GMT (envelope-from git) Date: Wed, 20 Oct 2021 12:00:22 GMT Message-Id: <202110201200.19KC0MJq046085@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Baptiste Daroussin Subject: git: f3aad18d5e57 - main - sh(1): fix home/del key on mobaxterm env List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bapt X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f3aad18d5e57328469be0e3be9e17d7bc48e6822 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bapt: URL: https://cgit.FreeBSD.org/src/commit/?id=f3aad18d5e57328469be0e3be9e17d7bc48e6822 commit f3aad18d5e57328469be0e3be9e17d7bc48e6822 Author: Baptiste Daroussin AuthorDate: 2021-10-20 11:58:18 +0000 Commit: Baptiste Daroussin CommitDate: 2021-10-20 12:00:20 +0000 sh(1): fix home/del key on mobaxterm env For $reason mobaxterm default on sending unusual sequence from home/del key, which makes libedit unabel to catch them and bind them correctly. mobaxterm seems popular on the windows environment, so add proper keybinding to default shrc configuration so it works out of box. Reported by: lme --- bin/sh/dot.shrc | 4 ++++ share/skel/dot.shrc | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/bin/sh/dot.shrc b/bin/sh/dot.shrc index 5a111a61a38d..75d0ec047734 100644 --- a/bin/sh/dot.shrc +++ b/bin/sh/dot.shrc @@ -40,6 +40,10 @@ bind "\\e[1;5C" em-next-word bind "\\e[1;5D" ed-prev-word alias history='fc -l' +# Fix home/del for mobaxterm +bind ^[[5~ ed-move-to-beg +bind ^[[6~ ed-move-to-end + # read(2) of directories may not be desirable by default, as this will provoke # EISDIR errors from each directory encountered. # alias grep='grep -d skip' diff --git a/share/skel/dot.shrc b/share/skel/dot.shrc index 56a6b1828131..1f33504db0c0 100644 --- a/share/skel/dot.shrc +++ b/share/skel/dot.shrc @@ -40,6 +40,10 @@ bind "\\e[1;5C" em-next-word bind "\\e[1;5D" ed-prev-word alias history='fc -l' +# Fix home/del for mobaxterm +bind ^[[5~ ed-move-to-beg +bind ^[[6~ ed-move-to-end + # set prompt: ``username@hostname:directory $ '' PS1="\u@\h:\w \\$ "