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"
# >>> 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' !!
__conda_setup="$('/usr/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/usr/etc/profile.d/conda.sh" ]; then
. "/usr/etc/profile.d/conda.sh"
else
export PATH="/usr/bin:$PATH"
fi
fi
unset __conda_setup
# __conda_setup="$('/usr/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
# if [ $? -eq 0 ]; then
# eval "$__conda_setup"
# else
# if [ -f "/usr/etc/profile.d/conda.sh" ]; then
# . "/usr/etc/profile.d/conda.sh"
# else
# export PATH="/usr/bin:$PATH"
# fi
# fi
# unset __conda_setup
# <<< conda initialize <<<
#
alias socrates="ssh root@socrates"
alias almond_droplet="ssh tanguy@almond_droplet -p 22222"