Skip to content

Commit 0cda0ef

Browse files
committed
Enable conda for zsh
1 parent d6873e6 commit 0cda0ef

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

zsh/custom/python.zsh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
# "conda init zsh" in a shell that has conda enabled (such as bash)
55
# >>> conda initialize >>>
66
# !! Contents within this block are managed by 'conda init' !!
7-
# __conda_setup="$("${HOME}/miniconda3/bin/conda" 'shell.zsh' 'hook' 2> /dev/null)"
8-
# if [ $? -eq 0 ]; then
9-
# eval "$__conda_setup"
10-
# else
11-
# if [ -f "${HOME}/miniconda3/etc/profile.d/conda.sh" ]; then
12-
# . "${HOME}/miniconda3/etc/profile.d/conda.sh"
13-
# else
14-
# export PATH="${HOME}/miniconda3/bin:$PATH"
15-
# fi
16-
# fi
17-
# unset __conda_setup
7+
__conda_setup="$("${HOME}/miniconda3/bin/conda" 'shell.zsh' 'hook' 2> /dev/null)"
8+
if [ $? -eq 0 ]; then
9+
eval "$__conda_setup"
10+
else
11+
if [ -f "${HOME}/miniconda3/etc/profile.d/conda.sh" ]; then
12+
. "${HOME}/miniconda3/etc/profile.d/conda.sh"
13+
else
14+
export PATH="${HOME}/miniconda3/bin:$PATH"
15+
fi
16+
fi
17+
unset __conda_setup
1818
# <<< conda initialize <<<
1919

2020
# Enable conda without setting it as the default Python

0 commit comments

Comments
 (0)