From patchwork Fri Oct 7 05:27:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Cournoyer X-Patchwork-Id: 1014 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 CBAEC27BBE9; Fri, 7 Oct 2022 06:28:15 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, 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 121C327BBEA for ; Fri, 7 Oct 2022 06:28:13 +0100 (BST) Received: from localhost ([::1]:48364 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ogfu8-0002OT-8i for patchwork@mira.cbaines.net; Fri, 07 Oct 2022 01:28:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52808) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogftz-0002N6-3v for guix-patches@gnu.org; Fri, 07 Oct 2022 01:28:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34937) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ogfty-0000W9-Ig for guix-patches@gnu.org; Fri, 07 Oct 2022 01:28:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ogfty-0001kO-7V for guix-patches@gnu.org; Fri, 07 Oct 2022 01:28:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58345] [PATCH 0/3] Customize PS1 on foreign distributions Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 07 Oct 2022 05:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58345 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58345@debbugs.gnu.org Cc: Maxim Cournoyer X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16651204716697 (code B ref -1); Fri, 07 Oct 2022 05:28:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 Oct 2022 05:27:51 +0000 Received: from localhost ([127.0.0.1]:34015 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogftn-0001jx-6Y for submit@debbugs.gnu.org; Fri, 07 Oct 2022 01:27:51 -0400 Received: from lists.gnu.org ([209.51.188.17]:36596) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogftl-0001jp-5o for submit@debbugs.gnu.org; Fri, 07 Oct 2022 01:27:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43276) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogftk-0002JW-TW for guix-patches@gnu.org; Fri, 07 Oct 2022 01:27:48 -0400 Received: from mail-qk1-x734.google.com ([2607:f8b0:4864:20::734]:35408) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ogftj-0000UN-Gd for guix-patches@gnu.org; Fri, 07 Oct 2022 01:27:48 -0400 Received: by mail-qk1-x734.google.com with SMTP id q1so1007591qkm.2 for ; Thu, 06 Oct 2022 22:27:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=354TWF+/akU14W/40axi+iFF5rPpEpVhGMjyGhA/fAo=; b=lv24hoEolpDLOh8AQKcI57pfgrEL7v2QhYmZPUOsxhkeudEKWtSNNOstBwZ6+dHpgx Hg/BJTnSpZgYabxWipbMXKiNb5jxi1J0tcQ+wZpET4a9TKciCm5Gi49fKRFqW9xABNJO L9DutsPg4zugi41q2NIrSZo4PmmaQtG0MMvNp6A4cf1Gc0uZdzGvmmrbnDusp6v3Hbgf 97lZ4R09T52ixdiBcI0PYKfUP/YxuwwDoKdjqWbC82wg0Agv2VgKr9VeMg0dBVWPLTA3 WNSt4hjS5S4b67FOOWX++t4u7NohhBOdy2RcKYoAFeyjk9ePT0iOvnnmTSYDsSeV6Dzp HsaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=354TWF+/akU14W/40axi+iFF5rPpEpVhGMjyGhA/fAo=; b=7USdFdydZOvxdNcLbAdfKUVW08nKHbmO7A/GLqoxEnBbSiHVosDCIOm8fpEbdFz+3t yMusmbnkkJd11U4BV5HvMqiDk/e2tVdn6oauF1610/l98nC0/xFMZN0SVqFWRBcRJpaS VHvczgOk+Yc0uC1zFYSNewqnv0YkmmYPP/tRNPYBbly6nOhopjN5LJG+zu8ZIB1QQZr1 +CMucnmp5B7WLOwAkq1dvih4WBBV7X1JcG5BBA6wZSCvnQyQbqtwrjF3YUQXbROFQoIu PVTF4I/I9Vt451rZG85w3AysCJDTL9DLOHz+daofetkgvtjBtu39NyM0AjOATs0W/z94 UDNw== X-Gm-Message-State: ACrzQf0nsVQZFwXkc0l0MLGBRlexaz4WI6CVfQW/35ptxrmOxwmK94kx qgmy4pn0dRY6EdmjxG5Pw6wvd0JFEj0= X-Google-Smtp-Source: AMsMyM6Bybzx8ziehzGK4H0uD/lTjFFb9gMprjJI9qfbXQvIC79dfc2+xdw5v13RDnW/pDuir9PAMA== X-Received: by 2002:a05:620a:28ce:b0:6cf:933c:40d3 with SMTP id l14-20020a05620a28ce00b006cf933c40d3mr2573057qkp.258.1665120465819; Thu, 06 Oct 2022 22:27:45 -0700 (PDT) Received: from localhost.localdomain ([2607:fad8:4:3::1005]) by smtp.gmail.com with ESMTPSA id y23-20020a376417000000b006bb49cfe147sm1078294qkb.84.2022.10.06.22.27.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Oct 2022 22:27:45 -0700 (PDT) From: Maxim Cournoyer Date: Fri, 7 Oct 2022 01:27:38 -0400 Message-Id: <20221007052738.20637-1-maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::734; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qk1-x734.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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" X-getmail-retrieved-from-mailbox: Patches Hi! The following fixes a usability issue, which is that users entering 'guix shell' or 'guix environment' would not have any visual feedback in the prompt about where they are. I've tested it on three different foreign distributions, and it worked well on all of them. Thanks, Maxim Cournoyer (3): guix-install.sh: Improve prompt_yes_no procedure. guix-install.sh: Introduce 'die' utility function. guix-install.sh: Add Bash prompt customization option. etc/guix-install.sh | 69 +++++++++++++++++++++++++++++++-------------- 1 file changed, 48 insertions(+), 21 deletions(-)