From 0b1aa9c3b7ee5d7eaf96a8a0a31e1fcbd7931a56 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Fri, 18 Apr 2025 15:41:02 -0500 Subject: [PATCH] Activate vox before other xontribs When vox was activated after apipenv, then opening a new shell in a folder with a Pipfile resulted in calls to vox before the xontrib had been loaded. This resulted in improper error messages about missing the vox program and meant the Pipenv was not auto-loading in that folder. By moving activation of vox before these other xontribs, those xontribs can make use of vox internally --- home/modules/baseline/xonsh_footer.xsh | 5 ----- home/modules/baseline/xonsh_header.xsh | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/home/modules/baseline/xonsh_footer.xsh b/home/modules/baseline/xonsh_footer.xsh index d338c9b..6663435 100644 --- a/home/modules/baseline/xonsh_footer.xsh +++ b/home/modules/baseline/xonsh_footer.xsh @@ -128,11 +128,6 @@ aliases['cleanup'] = _cleanup # ### -# Does virtualenv support -xontrib load vox -# Faster coreutils -xontrib load coreutils - # Allows identifying JSON as if it was Python by adding some new builtins to the language import builtins builtins.true = True diff --git a/home/modules/baseline/xonsh_header.xsh b/home/modules/baseline/xonsh_header.xsh index 48aa8ac..5e7b5f6 100644 --- a/home/modules/baseline/xonsh_header.xsh +++ b/home/modules/baseline/xonsh_header.xsh @@ -11,6 +11,11 @@ from sys import platform # set -x == trace on; $XONSH_TRACE_SUBPROC = True # $? == _.rtn + +# Does virtualenv support +xontrib load vox +# Faster coreutils +xontrib load coreutils xontrib load direnv xontrib load coreutils xontrib load xonsh-apipenv