Move conda-init to alias

work
mat ess 2022-09-01 21:35:55 -04:00
parent 3c555f5594
commit 4a8623227c
2 changed files with 1 additions and 2 deletions

View File

@ -26,8 +26,6 @@ in
if test -d (brew --prefix)"/share/fish/vendor_completions.d" if test -d (brew --prefix)"/share/fish/vendor_completions.d"
set -p fish_complete_path (brew --prefix)/share/fish/vendor_completions.d set -p fish_complete_path (brew --prefix)/share/fish/vendor_completions.d
end end
'' + lib.optionalString (caskIsPresent "miniforge") ''
eval /opt/homebrew/Caskroom/miniforge/base/bin/conda "shell.fish" "hook" $argv | source
''; '';
homebrew.enable = pkgs.lib.homebrew-enabled; homebrew.enable = pkgs.lib.homebrew-enabled;

View File

@ -213,6 +213,7 @@
htop = "${bottom}/bin/btm"; htop = "${bottom}/bin/btm";
tb = "toggle-background"; tb = "toggle-background";
sb = "set-background-to-macOS"; 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`. # Configuration that should be above `loginShellInit` and `interactiveShellInit`.