From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id sEzRIvvfR2DPXgAA0tVLHw (envelope-from ) for ; Tue, 09 Mar 2021 20:52:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id EGB7HvvfR2CdMQAAbx9fmQ (envelope-from ) for ; Tue, 09 Mar 2021 20:52:11 +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 090B89265 for ; Tue, 9 Mar 2021 21:52:11 +0100 (CET) Received: from localhost ([::1]:50736 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJjKs-00050U-4I for larch@yhetil.org; Tue, 09 Mar 2021 15:52:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44916) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJj18-0006pg-MC for help-guix@gnu.org; Tue, 09 Mar 2021 15:31:46 -0500 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]:35110) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lJj16-0002Qd-NA for help-guix@gnu.org; Tue, 09 Mar 2021 15:31:46 -0500 Received: by mail-ed1-x52c.google.com with SMTP id p1so23029065edy.2 for ; Tue, 09 Mar 2021 12:31:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beadling-co-uk.20150623.gappssmtp.com; s=20150623; h=user-agent:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=buRRdHiOw0u8409jr+cKdThfXCez2Y6Masa3y1PkuFw=; b=koP7RDpKrYYbT9yQ8LaIyvk1xSUj83P04k93rNE+cYoZMznBpUqztFW1efE80aR6T0 u85AID5Eu57atnPFGPQ1x1QolwUWcNT4RtO5w7+ZBoFJdIDorts1libTApm3vH2J1bZa elZ68c0xUkCowM9jgg+DTj7oHfBM3XY6LFkvYWSsHXoR1UZrEyELMtEVJi73SNx4lvSn mSOBLfmdlV3C03SgMx4AVAISFwc9+DBgW95e8ZC1NwfcHBDXELbWrJVGLs6gvlMUyaaN FofAKGutOM/bi9OVyvL81gAtfNxHwZlZUjZKoMkWqD663DEoptx0BQytAn76YK1tpxXj w/KQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version:content-transfer-encoding; bh=buRRdHiOw0u8409jr+cKdThfXCez2Y6Masa3y1PkuFw=; b=YAcFW8FQ7O0x6m42SZyOtxMNmkZ603OhqZkD3GUVPfF/RhPPfeKgkNqAgHBMoswZ7+ AgG8mIL35IGAcmK/2LGdjzn7t9dSiLY8LlHotxY2li0cYfA08DTG3lq2Qp0/71b/OVVy hHfBtrE29UinXRQa7Qt0qhq0XpLi1ugETzSjUkMewLYWWxuaPkIEVFVxwppBWSswiGAO eieudpu8SRIDaxWFYaCrzFDLEpzhYTajffsu3fxBl1hCRhfhdETC6D8V0pQ/zJnEWiZg suA/0wqdnyHXzZP1/Th6T90RH2J6UCUXPxOEo9p+mzeQoHoid8IRcaaznNkbDx7pDJfa dEcw== X-Gm-Message-State: AOAM530OYzcoPW2FeWhMIiy3Oro3qqNvEf/kvsQSSHvwfX58phYxXRsL Jf192p6R+N2qBGVgno7nUbXycTHBrHgTDmNl+2E= X-Google-Smtp-Source: ABdhPJxnA78xjq9mYjT5+8y9PRNSdGx0vfSt7nwoAc9yvF/QoQblrJFLgHV4x0R3PhtRiVrVc+HVDA== X-Received: by 2002:a05:6402:104c:: with SMTP id e12mr6082839edu.108.1615321902206; Tue, 09 Mar 2021 12:31:42 -0800 (PST) Received: from phil-XPS-13-9360 (host-78-147-225-8.as13285.net. [78.147.225.8]) by smtp.gmail.com with ESMTPSA id v1sm8686584ejd.3.2021.03.09.12.31.40 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 09 Mar 2021 12:31:41 -0800 (PST) User-agent: mu4e 1.2.0; emacs 26.3 From: Phil To: help-guix@gnu.org Subject: Guix implementation for bullet-train Date: Tue, 09 Mar 2021 20:31:40 +0000 Message-ID: <85blbsm5lf.fsf@beadling.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: none client-ip=2a00:1450:4864:20::52c; envelope-from=phil@beadling.co.uk; helo=mail-ed1-x52c.google.com 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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615323131; 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: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=buRRdHiOw0u8409jr+cKdThfXCez2Y6Masa3y1PkuFw=; b=SrknBgRlKhJQ6kpzvX03Bje8KUAclL0ObmtYmi8AReNMUXmqW7CvNgJ5xuXfawhWZ+tjsw tlaiup27+gPQW08U9HdgLUf1cBB2AVUAht3B87d8VKCt4MSN+CGTfYXV22JvipPcWoiHWZ PqxpOQvkIDqYzGD9yRfXsBOyfxsOS0IGWeWtcDOA30UD1XhEMk5JF7glL+sldKcU5mdspd /HaPUmbvLymo6/vjO7G8BC4Y5S0tfHeKiiFnOnw/n4/EgiiiYHjjRHWfVSi7P9SdG5a1hZ tHQ6HCfreFOaZmP4WThfU7Kv/EclkWnuHk5S9+ilm705DFo58iywz39S2IKKGA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615323131; a=rsa-sha256; cv=none; b=E2kqU4o3Jv/WDhL40Tdi3yif3kvt0UqQ4FC6t5fhqNBnlT8vS4KxQ7Bdha3t6bl9YblOe5 jZzeRUKyCA4jYpx/1kEST7En8DWlpryLJQC/EBFcP92kKjVemliiVcRmQNlMRR0OnAIAqB wI1UhAtKUsfeQLZKjGk9r6hYxb1yOkZ83kjpKKp9fgtdHIczwt1/3sC5SXb8KUQCrj2/84 UOcJQoP7DjakZnHa2RcXH/hSHTaHdZXj1w/FwW33NApvRlV389k8pFL/MOwdWIxn/zIweL pZVNJOA0SRWP0qB7SK8betkWbZrETPZzoT81OHIrkrZTWRcs9QEtarO4JbtvLg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=beadling-co-uk.20150623.gappssmtp.com header.s=20150623 header.b=koP7RDpK; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.58 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=beadling-co-uk.20150623.gappssmtp.com header.s=20150623 header.b=koP7RDpK; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 090B89265 X-Spam-Score: -2.58 X-Migadu-Scanner: scn0.migadu.com X-TUID: TyLxepdLtTaZ Hi all, I've implemented a basic Guix plugin for Oh-My-Zsh's Bullet Train theme. I plan to add more functionality going forwards as I think of more use case= s. Bullet Train is a fancy console prompt that supports Python, Ruby, Git, AWS= , etc - by augmenting the command prompt with contextual about the current console environment and directory location. I based the Guix plugin on the Python virtualenv one - but thinking about how to represent Guix environmental data, it's more complex than virtualenvs as it's not just a binary virtualenv is active or not. I've made some simple assertions below - if anyone has an opinion on this let me know. - Guix profiles can be stacked on top of each other, and the order is relevant. Unlike virtualenvs, we can source many profiles and we need to be able to visually reference this. I do this by listing profiles in the order they were sourced from left to right: .guix_profile =E2=86=90 my_profile =E2=86=90 some_other_profile - Guix environments (excluding --pure) can also be added to this stack with environments running on top of profiles, or you can source a profile from inside an environment. However when an environment is exited it and any profiles stacked on top of it are lost, and must be pruned from the visual representation: .guix_profile =E2=86=90 my_environment =E2=86=90 some_other_profile But on exit from the environment the visual representation will be pruned to this: .guix_profile Thanks, Phil. My fork: https://github.com/falloutphil/bullet-train.zsh My changes: https://github.com/caiogondim/bullet-train.zsh/compare/master...falloutphil= :master