From patchwork Thu Mar 27 08:46:40 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Efraim Flashner X-Patchwork-Id: 40871 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id D753D27BBE2; Thu, 27 Mar 2025 08:49:20 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-8.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL, RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 61B4727BBE2 for ; Thu, 27 Mar 2025 08:49:20 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1txivG-000418-UD; Thu, 27 Mar 2025 04:49:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1txivE-00040h-QW for guix-patches@gnu.org; Thu, 27 Mar 2025 04:49:09 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1txivD-0003Cw-Ij; Thu, 27 Mar 2025 04:49:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=P1LbC7KsgcgiMFqLwNtWCzK14nopyLN3+2Vd56PV994=; b=enNqa9RnK0kDJSgsb7gsFWshp6L/5Nm4+URURs89gIO13h61w4oMX2nk2LFolM5+m4mzKUgkEu3Rd+Jvenz+qd0Eaiv4F2PbxqlPZQkuZ4wmv4E3lKJEmPrKC3wHBPtPB4+Jwhcx7u1xjULCND5p33Q/nifEtOHwsk660p0aPYGgl/VB7+EIcIWIrFF2Sqrc1j1tf2n/+nSK6tqOiEKAm9CQmWGehiQSDvevNWz+8edHybW3LCZsTRwN4BiposhtjaHJyVhRE1OxrZ2/UMesjxl4bUzi8Jfulzf9AZJ4u1tRDRVHVk7VlbMHbzwg9p3HuXh+knNtZzHmS9mbkJv8FA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1txiv9-0002hn-CA; Thu, 27 Mar 2025 04:49:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77181] [PATCH v2 1/6] guix: Add shell completion directories. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix@cbaines.net, dev@jpoiret.xyz, ludo@gnu.org, othacehe@gnu.org, zimon.toutoune@gmail.com, me@tobias.gr, guix-patches@gnu.org Resent-Date: Thu, 27 Mar 2025 08:49:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 77181 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 77181@debbugs.gnu.org Cc: 45mg <45mg.writes@gmail.com>, Efraim Flashner , Ian Eure , Christopher Baines , Josselin Poiret , Ludovic =?utf-8?q?Court=C3=A8s?= , Mathieu Othacehe , Simon Tournier , Tobias Geerinckx-Rice X-Debbugs-Original-Xcc: Christopher Baines , Josselin Poiret , Ludovic =?utf-8?q?Court=C3=A8s?= , Mathieu Othacehe , Simon Tournier , Tobias Geerinckx-Rice Received: via spool by 77181-submit@debbugs.gnu.org id=B77181.174306533010266 (code B ref 77181); Thu, 27 Mar 2025 08:49:03 +0000 Received: (at 77181) by debbugs.gnu.org; 27 Mar 2025 08:48:50 +0000 Received: from localhost ([127.0.0.1]:47399 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1txiut-0002f1-5I for submit@debbugs.gnu.org; Thu, 27 Mar 2025 04:48:50 -0400 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]:43128) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1txiuo-0002dL-Om for 77181@debbugs.gnu.org; Thu, 27 Mar 2025 04:48:44 -0400 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-43cf680d351so10347715e9.0 for <77181@debbugs.gnu.org>; Thu, 27 Mar 2025 01:48:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1743065316; x=1743670116; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=P1LbC7KsgcgiMFqLwNtWCzK14nopyLN3+2Vd56PV994=; b=h6tBosxBFBbk7+pg7ZYtVHnEXhSmIkVDA97EV0VwEYyrdf6DZRzmvyibkv5Z9tTDtc IenNzoDK2vT2C06QusvSRf6yWh6VJ9GRovWHC+0pD6W4C66jAeYIEeoRlpumrtzlIa25 Z1XdojWRPpsJdXbFTay52q4kOYn4fMqx1QrhaD+3QUb9dcPQSDz1aFLrUJNLl3k2OCQv PhWYkJlJRwDhknLJVF1NLXhxhZ+JASHiEwg8HMcs61aNDIfax+nnP475OTse2EXFk7DL zL73QBnL6yw7wZtrNwXi0gLNcpKVtYNIHlw1EwKxaaGL16POQpcs3BrPCvNMgb85FmIa bPlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743065316; x=1743670116; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=P1LbC7KsgcgiMFqLwNtWCzK14nopyLN3+2Vd56PV994=; b=t91HBvRWM9fn/pXxZScTJ8cfUM28RHjIzcNCmOBnOZlZDzC/aVBhKAuM80133D8o4f DR9+dtyDdct/KFJ8v6lYLiz9H9pfZBtzkUgUmKS5VunSjxDFDnCEtA2Qb4JOziUXrT88 44ZI5WuhSB1ykDpNPkMjWjEVqWw5bXE1zxrM18j1zUaHp3osFVbYsktHa4n3RN+qMtiu fKXoYyzGprdNGnjaPjZsuqKMFwmN0X0GmjS1re4pZovT/PVmiYoTK5a0jXTHg9KcDCaA 1+U9Mx1yLAMR0+sDHyYoTU7FpaoSOMzgy4OojiSEn4AB81FFuqU+902A5WSfXKUjyGsM omBA== X-Gm-Message-State: AOJu0YzWLk7iOgUy08Ax0DBDasMbpRpFSRS6z+9Kr2+qNZnXPAQ1DVXv aF6XUVBBanjFTrODaO3GG7wLwhDe/XLNKAqvVZ3FB65Wqve/A7uohobdAdkT X-Gm-Gg: ASbGnctgDx/2I0GaIT1Z6c1qiW2iQQAIwSI/N0aLVyyxxkH/KYz/H3d6hzIjWxIODuA DyP7Ocl0Ow7iZAGcL2ogOD7z5TmBSmU/T52Z9MJnS2Apbqat5BLdRGwUiP4YO3ESWuu3WI6gAb1 ncVBLcHQcTkc6etxPXs8cANZvr1IGhyT8fMm5vofGUI7nrIGDaVso4Z6EGk1q3lM+hFEiiREZvq mV1+FO9+BFJh4GNqEkA7zVO5f76j1KjO9UcRGxHIP/tWLh7CpBMSymsRzZmFwyr0nrMUCSXHruF Ft52NtZx8PefZVACHMGHd6llbUehzEMwE2LFncldNYofdg/f3aEXQ1NPVNk= X-Google-Smtp-Source: AGHT+IFQLx6HMrILILwoBHy9lROA1JWaGGH1lvwaQIjy2H2DsQ38R2dJWOdx9kaN/7r4AisEy/pOLg== X-Received: by 2002:a05:6000:1fa5:b0:39a:c6c4:f87b with SMTP id ffacd0b85a97d-39acc444a34mr5842621f8f.5.1743065316151; Thu, 27 Mar 2025 01:48:36 -0700 (PDT) Received: from localhost ([141.226.15.94]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43d8314b9e9sm29941685e9.37.2025.03.27.01.48.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Mar 2025 01:48:35 -0700 (PDT) From: Efraim Flashner Date: Thu, 27 Mar 2025 10:46:40 +0200 Message-ID: <3c72e49e718f95b1836b22289dc2209550d146a8.1743065002.git.efraim@flashner.co.il> X-Mailer: git-send-email 2.49.0 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * guix/utils.scm (bash-completion-dir, fish-completion-dir, zsh-completion-dir, elvish-completion-dir, nu-completion-dir): New variables. Change-Id: I076bd26a87f196a32fb9542cd8058fc1d2a12aa9 --- guix/utils.scm | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/guix/utils.scm b/guix/utils.scm index c7c23d9d5ba..2108eff7a75 100644 --- a/guix/utils.scm +++ b/guix/utils.scm @@ -7,7 +7,7 @@ ;;; Copyright © 2015 David Thompson ;;; Copyright © 2017 Mathieu Othacehe ;;; Copyright © 2018, 2020 Marius Bakke -;;; Copyright © 2020, 2021, 2024 Efraim Flashner +;;; Copyright © 2020, 2021, 2024, 2025 Efraim Flashner ;;; Copyright © 2020, 2021, 2022 Maxim Cournoyer ;;; Copyright © 2021 Simon Tournier ;;; Copyright © 2021 Chris Marusich @@ -149,6 +149,12 @@ (define-module (guix utils) config-directory cache-directory + bash-completion-dir + fish-completion-dir + zsh-completion-dir + elvish-completion-dir + nu-completion-dir + readlink* go-to-location edit-expression @@ -1193,6 +1199,36 @@ (define-syntax current-source-directory ;; raising an error would upset Geiser users #f)))))) + +;;; +;;; Shell completion directories. +;;; + +(define bash-completion-dir + ;; The standard directory for installing bash completions. + ;; https://github.com/scop/bash-completion?tab=readme-ov-file#faq + "/share/bash-completion/completions/") + +(define fish-completion-dir + ;; The standard directory for installing fish completions. + ;; https://fishshell.com/docs/current/completions.html#where-to-put-completions + "/share/fish/vendor_completions.d/") + +(define zsh-completion-dir + ;; The standard directory for installing zsh completions. + ;; https://github.com/z-shell/wiki/blob/main/ecosystem/plugins/zsh_navigation_tools.mdx#install-zsh-navigation-tools + "/share/zsh/site-functions/") + +(define elvish-completion-dir + ;; The standard directory for installing elvish completions. + ;; https://elv.sh/ref/command.html#module-search-directories + "/share/elvish/lib/") + +(define nu-completion-dir + ;; The standard directory for installing nushell completions. + ;; https://www.nushell.sh/book/configuration.html#startup-variables + "/share/nushell/vendor/autoload/") + ;;; ;;; String comparison.