before upgrade
This commit is contained in:
18
.zshrc
18
.zshrc
@@ -264,6 +264,24 @@ fi
|
||||
unset __conda_setup
|
||||
# <<< conda initialize <<<
|
||||
|
||||
#### <BEGIN conda zsh completion>
|
||||
# --- Enable conda autocompletion ---
|
||||
if command -v conda &>/dev/null; then
|
||||
# Ensure Conda hook is loaded
|
||||
eval "$(conda shell.zsh hook)"
|
||||
|
||||
# Add Conda's completion functions to zsh's function path
|
||||
_conda_zsh_completions_dir="$(conda info --base)/etc/profile.d"
|
||||
if [ -d "$_conda_zsh_completions_dir" ]; then
|
||||
fpath+=("$_conda_zsh_completions_dir")
|
||||
fi
|
||||
fi
|
||||
|
||||
autoload -U compinit && compinit
|
||||
#### <END conda zsh completion>
|
||||
|
||||
|
||||
|
||||
# export PATH="/opt/homebrew/bin:$PATH"
|
||||
|
||||
# for cocoapods
|
||||
|
||||
Reference in New Issue
Block a user