[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: guix + fish shell help

From: Unstable Horse
Subject: Re: guix + fish shell help
Date: Mon, 23 Oct 2023 11:47:02 +0200
User-agent: Evolution 3.48.3 (by

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

--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
--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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]