From e3920af719de70de2dffbe164f590d4d1fe9295d Mon Sep 17 00:00:00 2001 From: lachtan Date: Sat, 28 Jan 2023 05:14:08 -0100 Subject: [PATCH] Improve speed of loading scripts --- rc.local/pyenv.sh | 8 +++++--- rc/thefuck.sh | 1 - 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/rc.local/pyenv.sh b/rc.local/pyenv.sh index 7ad1861..92daa16 100644 --- a/rc.local/pyenv.sh +++ b/rc.local/pyenv.sh @@ -1,6 +1,8 @@ # Initializae pyenv -if can_run pyenv; then - export PYENV_ROOT=${PYENV_ROOT:-$HOME/.pyenv} - eval "$(pyenv init -)" +if (( ! $LWS_FAST )); then + if can_run pyenv; then + export PYENV_ROOT=${PYENV_ROOT:-$HOME/.pyenv} + eval "$(pyenv init -)" + fi fi diff --git a/rc/thefuck.sh b/rc/thefuck.sh index d780e24..a10c663 100644 --- a/rc/thefuck.sh +++ b/rc/thefuck.sh @@ -3,4 +3,3 @@ if [[ -z "$LWS_FAST" ]]; then eval "$(thefuck --alias)" fi fi -