From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id yHnkGjeuNmW2tQAA9RJhRA:P1 (envelope-from ) for ; Mon, 23 Oct 2023 19:32:39 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id yHnkGjeuNmW2tQAA9RJhRA (envelope-from ) for ; Mon, 23 Oct 2023 19:32:39 +0200 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 0EB583664B for ; Mon, 23 Oct 2023 19:32:39 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=runbox.com header.s=selector2 header.b=WjacYOm3; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=quarantine) header.from=runbox.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1698082359; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=kwxcDHyf5yXczqdDeHrk5wvdr/CD/Cr8PyU2Mnh0WFk=; b=SWEcmwplbo2gpEJAFPeL7W5SbRaXP95hjAI0dloWzoxmU3vXKzjeeL8OmdhcDJjM/1IdTm RlZ5ryZjZdz1RXrOUuoTWr+3OOTZN8L5j+JjiwArcNMrRbqcgqYKqzz1fJGejTiXuFLTcI 3/PmWJqw031kSIDXFqp+6aCvnul8swvMTWnTCWip1D/g5tZfx4ca+xsDf5X6MRVrxM4tTY 27n/nwP309iHqmKADCyPShr/KgF/PNSyWc8VJbwJZZJAPjfmE8Dok9szuEuhhLFPSz8owk roHsWfzTIujCGJffr3UsPwHTskofbXzbSyjDi8D63h+uA8+mEGl7K/IJT2S6Wg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=runbox.com header.s=selector2 header.b=WjacYOm3; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=quarantine) header.from=runbox.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1698082359; a=rsa-sha256; cv=none; b=kpy1/n70rQrOckkJhvfIjCk7y6PCEQHCfVyyY1MpmGE233Mwz/qyk1oILC2Td23fvNfiQ6 IBgb7CGvu4s9KnL/Evnb9phYbD8EVq+ZBR7SC44dY/c0x1+YaZv4V80N1oQOajeSoOSrL6 BCWa0OCUNe6xtyCx71xvraT8HwNndNLBMaOc7IR8YBOAc7CTlO5aduWwlxm8xdNf10T7IJ cpnub0MsJsFat09kTkJQTc6FBedRzwbtMY1cROejFGjyyZk/+W5JPBRh1mDOx6jxmjMyOM 0LofjcqYxsiu2i6O/PmV/BoLViBGBgettgE/b2azsFg0tozd0/XeqdGqOkld6Q== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1quymt-0004yg-Pm; Mon, 23 Oct 2023 13:32:27 -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 1quyms-0004yX-DS for help-guix@gnu.org; Mon, 23 Oct 2023 13:32:22 -0400 Received: from mailtransmit04.runbox.com ([2a0c:5a00:149::25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1quymp-00006i-4n for help-guix@gnu.org; Mon, 23 Oct 2023 13:32:22 -0400 Received: from mailtransmit03.runbox ([10.9.9.163] helo=aibo.runbox.com) by mailtransmit04.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1quymj-00EZUq-NE for help-guix@gnu.org; Mon, 23 Oct 2023 19:32:13 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=selector2; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID; bh=kwxcDHyf5yXczqdDeHrk5wvdr/CD/Cr8PyU2Mnh0WFk=; b=WjacYOm3+sKHX6/2YH59m5lD1/ XkXNmPRFzLFhPIGAoXy2e6RM1JeRPZfuUeXz2iadv4CMH9fvBDhdnBEbIyHCsOm+iETGFaxWnSJcT 9xcv6ABq4+XwgaSv+1ND+cxnQdiS6adByl3qf7GOpsVAeqEqSiKWwLUVqWu7gxVWVVggoyei39p8s 6V4X3QhmgZwUS89Ksx4BEQ6s6HVfp9jBH2UQ1f0ol3+EsievSD9ncgMG1CfBvpKSJqIdekvsGsX2l dXNclcqCqHX3JKrh/WUzYGh8VyGvBH/4tlvntd0qNgxBp2PYH6HBqZwUnhc0XbjK0D6V41HnOrxHf zt+lmrgw==; Received: from [10.9.9.72] (helo=submission01.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1quymi-0007z5-T0; Mon, 23 Oct 2023 19:32:13 +0200 Received: by submission01.runbox with esmtpsa [Authenticated ID (1174703)] (TLS1.2:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) id 1quymd-003O6r-2v; Mon, 23 Oct 2023 19:32:07 +0200 Message-ID: <03bb8e64-5637-4218-85d8-296453454878@runbox.com> Date: Mon, 23 Oct 2023 10:32:02 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: guix + fish shell help Content-Language: en-US To: Unstable Horse Cc: help-guix References: <9a496edb-8277-4b68-83c4-59f790458592@runbox.com> From: Alexis Simon In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a0c:5a00:149::25; envelope-from=alexis.simon@runbox.com; helo=mailtransmit04.runbox.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -10.62 X-Spam-Score: -10.62 X-Migadu-Queue-Id: 0EB583664B X-Migadu-Scanner: mx2.migadu.com X-TUID: XgeGd0jGVS6P Thanks so much for the pointers, not sure I understand all the intricacies but managed to solve all my issues with this (a bit more manual as I was getting errors with the eval part) --8<---------------cut here---------------start------------->8--- if status is-interactive ╎ # Commands to run in interactive sessions can go here ╎ # >>> conda initialize >>> ╎ # !! Contents within this block are managed by 'conda init' !! ╎ if test -f /home/alexis/opt/conda/bin/conda ╎ ╎ eval /home/alexis/opt/conda/bin/conda "shell.fish" "hook" $argv | source ╎ end ╎ ╎ if test -f "/home/alexis/opt/conda/etc/fish/conf.d/mamba.fish" ╎ ╎ source "/home/alexis/opt/conda/etc/fish/conf.d/mamba.fish" ╎ end ╎ # <<< conda initialize <<< ╎ fish_add_path -P -p ~/.cargo/bin ╎ fish_add_path -P -p ~/.nix-profile/bin ╎ fish_add_path -P -p ~/.guix-profile/bin ╎ fish_add_path -P -p ~/.config/guix/current/bin end --8<---------------cut here---------------end--------------->8--- Now the guix shell path is correctly prepended to my path! Best, Alexis On 23/10/2023 02:47, Unstable Horse wrote: > On Sun, 2023-10-22 at 19:51 -0700, Alexis Simon wrote: > >> If people could let me know how they've managed to set up fish >> properly >> with guix this would be great. > > I use fish as my login shell on GuixSD and this is my config.fish: > > --8<---------------cut here---------------start------------->8--- > if status is-login > eval "$(guix package --search-paths \ > -p ~/.config/guix/current \ > -p ~/.guix-profile \ > -p /run/current-system/profile)" > > fish_add_path -P -p ~/.local/bin > fish_add_path -P -p /run/setuid-programs > end > --8<---------------cut here---------------end--------------->8--- > > guix package --search-paths takes care of all the environment variables > needed for your profile, including PATH. Keep in mind that it overrides > these variables, it doesn't append. So if fish is not your login shell, > then you will need to re-apply you custom paths. > > Also, if it isn't your login shell, then the is-login check should > probably be removed.