diff --git a/modules/home-manager/server/shell/zsh.nix b/modules/home-manager/server/shell/zsh.nix index cd58938..e81bade 100644 --- a/modules/home-manager/server/shell/zsh.nix +++ b/modules/home-manager/server/shell/zsh.nix @@ -8,7 +8,7 @@ pkgs, lib, ... -}: +}@args: { options.zsh.enable = lib.mkEnableOption "Configure zsh for you"; @@ -37,6 +37,8 @@ }; autosuggestion.enable = true; enableCompletion = true; + completionInit = + "autoload -U compinit && compinit" + lib.optionalString (!(args ? nixosConfig)) " -u"; historySubstringSearch = { enable = true; searchDownKey = [ "^[OB" ]; @@ -60,7 +62,7 @@ unsetopt BEEP # Enable autocomplete for . and .. - autoload -Uz compinit && compinit + #autoload -Uz compinit && compinit zstyle ':completion:*' special-dirs true zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}' zstyle ':completion:*' list-colors "''${(s.:.)LS_COLORS}" @@ -87,18 +89,18 @@ # source ~/.config/zsh/_bws # >>> conda initialize >>> - __conda_setup="$('/opt/conda/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)" - if [ $? -eq 0 ]; then - eval "$__conda_setup" - else - if [ -f "/opt/conda/etc/profile.d/conda.sh" ]; then - . "/opt/conda/etc/profile.d/conda.sh" - else - export PATH="/opt/conda/bin:$PATH" - fi - fi - unset __conda_setup - # <<< conda initialize <<< + # __conda_setup="$('/opt/conda/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)" + # if [ $? -eq 0 ]; then + # eval "$__conda_setup" + # else + # if [ -f "/opt/conda/etc/profile.d/conda.sh" ]; then + # . "/opt/conda/etc/profile.d/conda.sh" + # else + # export PATH="/opt/conda/bin:$PATH" + # fi + # fi + # unset __conda_setup + # # <<< conda initialize <<< ''; # antidote = {