From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id EB61921F40 for ; Fri, 17 May 2024 13:05:00 +0200 (CEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1715943900; b=iyZ6U01TZZ6LOQ+fs2DyFXFxvCk7mmxVaYPeEeTTdud6+BtkfkDr6jgrNH6eZTsqkGwrf6f0Bg u/5GgQQ0pkFxkRJHUtjGjmqxPsQcYF5J7Z799o2MhvgWWfSp0CaU2m94pVPVLvotAGzGwpiEnb FMKYNe3MycC1hYdLsgpfFTcYHbZHs1fqIUCsEWNHJL5gYEotY9VI6OTJNsOmCz2i7F7fF/j6Ot VZMixnODo07bAPwOg/2Czh4wmzCCbDeYnAg+P9I5iwG9ccxMOmrX8xXtzCJ/83BJ8GKZyI7EAR 0N+6N5zY52m4MFG60bJ5XvNxMDsXr/mv90YxZBpLX/8Gog==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-yb1-f181.google.com) smtp.remote-ip=209.85.219.181; dkim=pass header.d=gmail.com header.s=20230601 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1715943900; bh=yebRkeIZokRhhDdK3L4M+DVI/nQCztv+FIiCno8+BwQ=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:To:Subject:Message-ID: Date:From:MIME-Version:DKIM-Signature:DKIM-Signature; b=iK04NAnaVmcRyHHYdJNGcRjQovzEYjs61Ql58anK3wBmmeh9bwXhJV7OY0FFNjJk/UxyWXYz8N N+UY1b3VpzxWByW9kBj2yIlA7l/Ve8/CajGxAmvl+um+ByxgjDS933qywHVgdI9BOAlAg+mqvI VTPrTIJ/gld4XpVPDwKvwCrEJ4gK44uKDmrwjJOeCyNef0YOS0gD8RlXKrihNPK7tHTbEWM+Hp HIZUwFHS7oXqqj1WJ4lS/FDvvYV5Fa+du4xR+NGioTjqSvosiZcFyxffG8vzAvCXnjmNHhD1ps i1UnvPDwOLOrc/ikmqiZN1FBsSs+7nP4yGGcFUUq3BVvxA==; 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:Content-Transfer-Encoding: Content-Type:To:Subject:Message-ID:Date:From:MIME-Version:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References; bh=wnfiSaJBEGsnqLBxz04zyagqiNyqCK2Aiz+z1254p/0=; b=itKC63UgAIjNlowhS3t9XlicBq X4J5JvY76L5TU6dpHRBPyQ0RRrZvbtsYWWjxxOJnGy6nunZPTWl0GPuKlFBfoK3a2Sc5aD82bVKMY GuZAXuIlmPZ+CjnxcMJSKRZ8FxnOgsu+eZ36H6HeLJMkMV1N5YIJxw6T0Vm33v51k6/AQ19tHQ+oO bgE7VI3yTbBW3byeMVcPcLD447vRbS3RVWi0Rocq2T9TZdJq8wd1ScriBoIwVz12ZEJJ1yAXQPLud 6Ay7/2mmjnBl1nfm1oLF19p2xW3PE4mbkyCSnnN/2rynkjlDvQ8/LhVZT10OAikD9g3d+tdZzEhl2 aksrHMZg==; Received: by zero.zsh.org with local id 1s7vOV-000DYy-NO; Fri, 17 May 2024 11:04:59 +0000 Authentication-Results: zsh.org; iprev=pass (mail-yb1-f181.google.com) smtp.remote-ip=209.85.219.181; dkim=pass header.d=gmail.com header.s=20230601 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-yb1-f181.google.com ([209.85.219.181]:42123) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1s7vNV-000Com-Gl; Fri, 17 May 2024 11:03:57 +0000 Received: by mail-yb1-f181.google.com with SMTP id 3f1490d57ef6-dee72970df8so4946016276.0 for ; Fri, 17 May 2024 04:03:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715943836; x=1716548636; darn=zsh.org; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=wnfiSaJBEGsnqLBxz04zyagqiNyqCK2Aiz+z1254p/0=; b=D3OALE/Tl2YesXk2uwVtT3c9rBuCF5fN/AjHTpaKJnbtBCXYBcfw0H0RR7iZl+bbks riFeLH9bOruHKe88BGXpuUoEElC7kmp50TxpuqKqKiTWEnM+aBwkXKy3wnt5JfKBEhpY 0eEABXeN626GhHEVeRyF1S4tqiod1qEwWmq+3VYVZyEcDe7tZzBsbD9zw0D52b5qODDk 13Dz+zp9qPImeU7dPkX+u68Fok9Ws5GFvoyceT8rpeFa6ffGkB/BxzI4DSVsbwWLxTCT RSdoXFgZmJddp1SS8aEIWANeqIpAcryqaWni3zcWnfSqCGq0VhmXOzQZs1ZPnTL2IkCd J1sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715943836; x=1716548636; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=wnfiSaJBEGsnqLBxz04zyagqiNyqCK2Aiz+z1254p/0=; b=vCDTssLyP+KJYBklHJqMmBHykswLx2xAMM8ZLtnAAU43lSVmwGgLwEvSzd1Ezy174T 9GGsTXr3AN+2FgJxAk9dt5ciZTwMFcaP4UJnHbjPP2kGk68YZITc/X59Qk3PDOjbAvG/ fSTnQ1EGf4617K5Hc5zNZdLJ2ryKKQDqt6tDbc6G+RkY+GNcy2dXOAmg7u4fH3LpYS1/ A18murThjAErGqkoWVDkd/BEy2Ss3uuypVZTpA1a31BYAx3Y9ynFUpre2tBpL/eZBeaq 9mHkpsC33BmvsxkbckDH/3IlugwIBOSh5E757+LO86iVp2K6oJkUhud/aZgrEdLQfJTS fz7w== X-Gm-Message-State: AOJu0YzJLlUTdJMOdUgqenvZ3FxKV1x4yx+Tedgzyg11YOJixWTg8EOh zZ961U9MhJhUuLh1ZmTSG5n4y+9QCkirdKUsV9OoLSEX842NjQm5i9CVNDPV58WuY/LcQAxCUDP 8xXaR8GaEnne7/2JwvhkVGvw7W71TDKNL X-Google-Smtp-Source: AGHT+IEFQ+cBBnnY9+cBRVior5pAvuX2snALRAmfQ2STxMKzqZp4PHDpHNqMeVJjt8kMpbiNTearEMZi5VVpZvt5lPA= X-Received: by 2002:a5b:1c7:0:b0:de8:b43c:14ee with SMTP id 3f1490d57ef6-debcfc36c7dmr16566303276.31.1715943836348; Fri, 17 May 2024 04:03:56 -0700 (PDT) MIME-Version: 1.0 From: Allomorphy Date: Fri, 17 May 2024 12:03:33 +0100 Message-ID: Subject: creating a mnemonic for a history command To: zsh-users@zsh.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 29937 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: Hallowed Zshers This is one of the most useful incantations for me: !?foo?:% It searches in the history for the latest command that contains the string `foo' and returns the token (or phrase between spaces) in that command. Its a pain to type. What is an elegant way to set up a mnemonic like say an alias or something else to type gimme(foo) or !@#foo Anything that uses less of my limited clock cycles to do this. =F0=9F=A4=93 Thanks E