From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 20686 invoked from network); 2 Sep 2022 01:37:04 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 2 Sep 2022 01:37:04 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1662082624; b=LaNZt7YP/Tt1FM0BbwZS8Chf7OA4hmPOPERwlGFSlOYxWWmmVFwhoZLcqgSdf9z1i95KkV1rFx 5EQepx3fTEMnaRJ4lfFz6y7nZ5jfd+RzWJogr2N6tqdsKAYsY/0mXUuRvDqczh6EXPGRvYCwmk 3HNs7zP32AF+POlO47Bsf2+RXVETJGVfVhsqAUSXOSokowcYe+QzhopLd3tf3AG193qOtrwt6L 1YvDb2swEWexlbMQefIluVfmICDWwt6qzYHkRBpq4pz/eXozE7Pfsrw39SkFfFfPnbmwg9NIo2 3tIbIGQOYaDUCioHdqFrvitUxwiGToWh5gUYGDqHXMiBqA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (joooj.vinc17.net) smtp.remote-ip=155.133.131.76; dmarc=none header.from=vinc17.net; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1662082624; bh=7TBudTQzbXSXnAzIo7B7gvXDp0AZgQM3eeCq8XReMXk=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:To:From:Date:DKIM-Signature; b=iPVWRA68weymH7qM4hqqZ1PHzQ8+ucniCmY6YR7j3lfWiXA+M9oAdg1f6pXM6CN0I88faCwMaW 5FstbWQ8cX5YGb/6wa25z/z4tfKS/B2mhi3oZtpERfLp+hTfv3cwpNC76v7uNSWiaD0XCcvjSv sHPO0p4FW0Vm9LPY4mpz279Egmyuf6WpoA4eQIgP6UxiDxqQhVR50JWwNaz6QItZtmmK0jfrza xFemfKmdPuBqFPItI1B9nBtw7xw1Aob8SauDjrGd1IJm0CSgtNheLf2+0pdYuvnh2gcldY3tgs GoeanSjEZfk7nNFYtMpw3+vdwB0RUrtZyFvliNJNgPgeIw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=as//jKiKDkIuWCTYlnuzUPoLxA37F7GhEDsPE8NMljs=; b=ZHfNFU7g0BpIJ0gVxwcd1LpAhO XEHbylrEnga3dGVaAANFn0x8JfmwRq9n4QhlxEgF3A7cfaV75+pZpTIT4Xj+e5Fxo+L/V7wW+d7qN t/lbdOx6MWj6e50CbwPhQAqhgmy+faGmwmmo4oqIJlAWt8TydeYAH1/dy7oJI7ulnnw1jJ5RVlTkK V+Mbwf4XMwYYScjU46h36V6D4RXjI3TuwMa0OgCXsdutQ/vEzdnlC4NF0LqYYVa5cpDOP9pDIJ9QO Mrl5p+SWPjq0bvDwTmG+RsEvqibEKFBL05DBXqN48BJh88+Os8FeqDkX+NqGRb8PpHEfwSQeD2piV TMo9Hjfw==; Received: from authenticated user by zero.zsh.org with local id 1oTvcF-0000BS-Pm; Fri, 02 Sep 2022 01:37:03 +0000 Authentication-Results: zsh.org; iprev=pass (joooj.vinc17.net) smtp.remote-ip=155.133.131.76; dmarc=none header.from=vinc17.net; arc=none Received: from joooj.vinc17.net ([155.133.131.76]:51160) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1oTvbF-000PSA-3D; Fri, 02 Sep 2022 01:36:01 +0000 Received: from smtp-zira.vinc17.net (128.119.75.86.rev.sfr.net [86.75.119.128]) by joooj.vinc17.net (Postfix) with ESMTPSA id 9E045378; Fri, 2 Sep 2022 03:36:00 +0200 (CEST) Received: by zira.vinc17.org (Postfix, from userid 1000) id 6B79B2800192; Fri, 2 Sep 2022 03:36:00 +0200 (CEST) Date: Fri, 2 Sep 2022 03:36:00 +0200 From: Vincent Lefevre To: zsh-users@zsh.org Subject: Re: Most minimal configuration challenge Message-ID: <20220902013600.GA1251392@zira.vinc17.org> Mail-Followup-To: zsh-users@zsh.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/2.2.7+32 (d84696f2) vl-149028 (2022-08-22) X-Seq: 28024 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Concerning the bindings, I find the following for [Tab] very useful. This is inspired by https://www.zsh.org/mla/users/2004/msg00743.html (zsh-users 7732). history-search-or-expand-or-complete() { if [[ -z "$BUFFER" && -z "$PREBUFFER" ]] then zle history-incremental-search-backward "$@" else zle expand-or-complete "$@" fi } zle -N history-search-or-expand-or-complete bindkey '\t' history-search-or-expand-or-complete A [Tab] character at the beginning of the buffer is useless, while a backward history search is common, and [Tab] is easier to type than Ctrl-R. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)