Xonsh is now native packaging, not a venv.

This commit is contained in:
Derek Taylor
2026-01-15 15:07:33 -06:00
parent 585cc4e909
commit 7b9b7471df

View File

@@ -5,7 +5,7 @@
# |____/ |_|
#
# My xonsh config written in python as opposed to using the standard .xonshrc format.
import subprocess
from pathlib import Path
from xonsh.xontribs import xontribs_load
@@ -25,7 +25,14 @@ xenv['BASH_COMPLETIONS']='/usr/share/bash-completion/bash_completion'
xenv['XONSH_COLOR_STYLE'] = 'one-dark'
### STARSHIP PROMPT ###
xontribs_load(['prompt_starship'])
# xontribs_load(['prompt_starship'])
starship_init = subprocess.check_output(
["starship", "init", "xonsh"],
text=True,
)
__xonsh__.execer.exec(starship_init)
### RANDOM COLOR SCRIPT ###
__xonsh__.subproc_uncaptured(['colorscript', 'random'])