From 4a8623227c7ad1fbfd58f326e1f432b17efb173e Mon Sep 17 00:00:00 2001 From: mat ess Date: Thu, 1 Sep 2022 21:35:55 -0400 Subject: [PATCH] Move conda-init to alias --- darwin/homebrew.nix | 2 -- home/shells.nix | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/darwin/homebrew.nix b/darwin/homebrew.nix index 883ea58..b6a79a6 100644 --- a/darwin/homebrew.nix +++ b/darwin/homebrew.nix @@ -26,8 +26,6 @@ in if test -d (brew --prefix)"/share/fish/vendor_completions.d" set -p fish_complete_path (brew --prefix)/share/fish/vendor_completions.d end - '' + lib.optionalString (caskIsPresent "miniforge") '' - eval /opt/homebrew/Caskroom/miniforge/base/bin/conda "shell.fish" "hook" $argv | source ''; homebrew.enable = pkgs.lib.homebrew-enabled; diff --git a/home/shells.nix b/home/shells.nix index ce7125c..abb149f 100644 --- a/home/shells.nix +++ b/home/shells.nix @@ -213,6 +213,7 @@ htop = "${bottom}/bin/btm"; tb = "toggle-background"; sb = "set-background-to-macOS"; + conda-init = "eval /opt/homebrew/Caskroom/miniforge/base/bin/conda 'shell.fish' 'hook' $argv | source"; }; # Configuration that should be above `loginShellInit` and `interactiveShellInit`.