Fix conda activation lagging out console init

This commit is contained in:
Tanguy Herbron 2020-07-24 21:04:41 +02:00
parent 5423b1e5b4
commit f8f327c0d8

24
.zshrc
View File

@ -106,19 +106,21 @@ export LANG=en_US.UTF-8
# alias ohmyzsh="mate ~/.oh-my-zsh" # alias ohmyzsh="mate ~/.oh-my-zsh"
# >>> conda initialize >>> # >>> conda initialize >>>
[ -f /opt/miniconda3/etc/profile.d/conda.sh ] && source /opt/miniconda3/etc/profile.d/conda.sh
# !! Contents within this block are managed by 'conda init' !! # !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/usr/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)" # __conda_setup="$('/usr/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then # if [ $? -eq 0 ]; then
eval "$__conda_setup" # eval "$__conda_setup"
else # else
if [ -f "/usr/etc/profile.d/conda.sh" ]; then # if [ -f "/usr/etc/profile.d/conda.sh" ]; then
. "/usr/etc/profile.d/conda.sh" # . "/usr/etc/profile.d/conda.sh"
else # else
export PATH="/usr/bin:$PATH" # export PATH="/usr/bin:$PATH"
fi # fi
fi # fi
unset __conda_setup # unset __conda_setup
# <<< conda initialize <<< # <<< conda initialize <<<
#
alias socrates="ssh root@socrates" alias socrates="ssh root@socrates"
alias almond_droplet="ssh tanguy@almond_droplet -p 22222" alias almond_droplet="ssh tanguy@almond_droplet -p 22222"