mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-13 20:28:35 +10:00
Xonsh is now native packaging, not a venv.
This commit is contained in:
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user