mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-08-09 17:41:12 +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.
|
# My xonsh config written in python as opposed to using the standard .xonshrc format.
|
||||||
|
import subprocess
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from xonsh.xontribs import xontribs_load
|
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'
|
xenv['XONSH_COLOR_STYLE'] = 'one-dark'
|
||||||
|
|
||||||
### STARSHIP PROMPT ###
|
### 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 ###
|
### RANDOM COLOR SCRIPT ###
|
||||||
__xonsh__.subproc_uncaptured(['colorscript', 'random'])
|
__xonsh__.subproc_uncaptured(['colorscript', 'random'])
|
||||||
|
|||||||
Reference in New Issue
Block a user