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 ms0.migadu.com with LMTPS id YFu0IQoTrGH6fwAAgWs5BA (envelope-from ) for ; Sun, 05 Dec 2021 02:16:58 +0100 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 mJ5lHQoTrGE0BAAA1q6Kng (envelope-from ) for ; Sun, 05 Dec 2021 01:16:58 +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 47F8371BF for ; Sun, 5 Dec 2021 02:16:58 +0100 (CET) Received: from localhost ([::1]:57544 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtg9B-0006My-Em for larch@yhetil.org; Sat, 04 Dec 2021 20:16:57 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33518) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtg8x-0006Mq-0h for guix-devel@gnu.org; Sat, 04 Dec 2021 20:16:43 -0500 Received: from world.peace.net ([64.112.178.59]:41660) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtg8u-0001jM-RO for guix-devel@gnu.org; Sat, 04 Dec 2021 20:16:42 -0500 Received: from mhw by world.peace.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mtg8Z-0000N5-I9; Sat, 04 Dec 2021 20:16:19 -0500 From: Mark H Weaver To: Jacob Hrbek , guix-devel@gnu.org Subject: Re: Reverse the naming of store items? In-Reply-To: References: Date: Sat, 04 Dec 2021 20:15:42 -0500 Message-ID: <871r2rj1gm.fsf@netris.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=64.112.178.59; envelope-from=mhw@netris.org; helo=world.peace.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1638667018; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=bavHQ9kuSmwxARLG/fZTk2CcdUV1ps85l6S9KxuRyCM=; b=ugPosEY+F0kPLM+GiRChn57f7wbv2lgJLcwSk1fKR/hLrUi2AMvkBkBd2ErWYGkTjw2WXx mwVTjrujHmYSJRj+JI/1JA1upHC9oStfr9q6b0G4g1R4h3idjDjGMD3/RDnkI87RxE1UVI Nd8qL7WjWZuprO+xyhBycN0iK+52MMMYn6c9us9KD/CdRfK7LtMdqNeXTAK95My1IkPlt8 FKUViCwq4V8OOLGGRMyZ0MFtDvuYqncyyEGlgDqJ8OFs37923EuuyRy1m9euDUoAVNDUQX 8Spkg2qKHzexGm//KoKhyqpqZeoOwEizRYG6V/7lvJkeW6dB0VhnBLvLeZeucA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638667018; a=rsa-sha256; cv=none; b=kx2vhHdP9/ZDP1K7joQBhD4uLFW+FFEEq4MYLvmEQQZgD1s4WzieLMn3yjkhtjfy9HjNXu 0ZpYn3Z4SYh/b9fzG1Vjuw4+Nr2k97/QAiOoMyrd3qnyXeZtvxE3f2kbd1XezEh+q6gA61 6L0VOMLEGywAvZ4f8YfCKQzSrPq2GzjYt9P73ucPCJVGE6nsOcK28WCTQ9oNgdC/44jPuJ wvkEZYkevIBZ0guDGLNVUWpnFszQgnADZvP7j/LwLfLBjTD0dSH/WfOWGj2LZdtCUfl5pq MGUmeVmFDsf/a4Wa9rRDjJo+iabWU8z3Pw5qazUWnWdoobFx65ZFty5m2fn9+w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.93 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 47F8371BF X-Spam-Score: -1.93 X-Migadu-Scanner: scn0.migadu.com X-TUID: yZroFGll62Cv Hi Jacob, Jacob Hrbek writes: > Currently we use > /gnu/store/zzz16sfz4jxsdvf8j29rkd46psrc6dpj-emacs-ert-runner-0.8.0.drv > for store items which are painful to navigate from CLI using bash's > auto-completion as the first letter doesn't correspond to the package > name which usually requires doing `ls /gnu/store | grep emacs` and > then copy pasting the path to work with the store items. As Kaelyn pointed out, there will usually be more than one store item for the same package, so you'll need to know at least the first few characters of the hash. Once you have that, then you will also have the entire store item name on your screen, at which point you can copy+paste it into your shell session. Suppose you don't want to copy+paste it. If you know the first few hash characters, then you can simply type "/gnu/store/" and that will usually be sufficient. For example, suppose I wish to navigate to the store item of the emacs that I'm currently using to type this message, which is: /gnu/store/9a31k78k56ky1da7n7knq3ys9hriw5sj-emacs-next-pgtk-28.0.50-1.ae18c8e On my current system, it suffices to type: /gnu/store/9a31 . If your proposal were adopted, then I would instead need to type: /gnu/store/emacs-ne 9 That's 6 more keypresses than is required under the current approach. Regards, Mark -- Disinformation flourishes because many people care deeply about injustice but very few check the facts. Ask me about .