Adding dirs to PATH in xonsh so my scripts work.

This commit is contained in:
Derek Taylor
2025-12-21 10:46:38 -06:00
parent c4cfffdb24
commit 03a4de751e

View File

@@ -7,6 +7,18 @@
# 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.
from xonsh.xontribs import xontribs_load from xonsh.xontribs import xontribs_load
import os
# EXPAND THE HOME DIR IN THE PATH
local_bin = os.path.expanduser("~/.local/bin")
applications_dir = os.path.expanduser("~/Applications")
### ADDING DIRS TO PATH ###
if local_bin not in __xonsh__.env["PATH"]:
__xonsh__.env["PATH"].append(local_bin)
if applications_dir not in __xonsh__.env["PATH"]:
__xonsh__.env["PATH"].append(applications_dir)
### XONSH THEME ### ### XONSH THEME ###
__xonsh__.env['XONSH_COLOR_STYLE'] = 'one-dark' __xonsh__.env['XONSH_COLOR_STYLE'] = 'one-dark'