mirror of
https://github.com/bartvdbraak/dotfiles.git
synced 2025-04-27 06:31:20 +00:00
substitute anaconda3 for miniconda3, add to .zshrc
This commit is contained in:
parent
183bd0566d
commit
987362b148
2 changed files with 19 additions and 4 deletions
8
.bashrc
8
.bashrc
|
@ -120,14 +120,14 @@ export PATH=~/.config/composer/vendor/bin:$PATH
|
|||
|
||||
# >>> conda initialize >>>
|
||||
# !! Contents within this block are managed by 'conda init' !!
|
||||
__conda_setup="$('/home/bart/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
|
||||
__conda_setup="$('/home/bart/miniconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
|
||||
if [ $? -eq 0 ]; then
|
||||
eval "$__conda_setup"
|
||||
else
|
||||
if [ -f "/home/bart/anaconda3/etc/profile.d/conda.sh" ]; then
|
||||
. "/home/bart/anaconda3/etc/profile.d/conda.sh"
|
||||
if [ -f "/home/bart/miniconda3/etc/profile.d/conda.sh" ]; then
|
||||
. "/home/bart/miniconda3/etc/profile.d/conda.sh"
|
||||
else
|
||||
export PATH="/home/bart/anaconda3/bin:$PATH"
|
||||
export PATH="/home/bart/miniconda3/bin:$PATH"
|
||||
fi
|
||||
fi
|
||||
unset __conda_setup
|
||||
|
|
15
.zshrc
15
.zshrc
|
@ -111,3 +111,18 @@ eval `dircolors ~/.dir_colors/dircolors`
|
|||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||
|
||||
|
||||
# >>> conda initialize >>>
|
||||
# !! Contents within this block are managed by 'conda init' !!
|
||||
__conda_setup="$('/home/bart/miniconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
|
||||
if [ $? -eq 0 ]; then
|
||||
eval "$__conda_setup"
|
||||
else
|
||||
if [ -f "/home/bart/miniconda3/etc/profile.d/conda.sh" ]; then
|
||||
. "/home/bart/miniconda3/etc/profile.d/conda.sh"
|
||||
else
|
||||
export PATH="/home/bart/miniconda3/bin:$PATH"
|
||||
fi
|
||||
fi
|
||||
unset __conda_setup
|
||||
# <<< conda initialize <<<
|
||||
|
|
Loading…
Reference in a new issue