Merge branch 'patch-2' into 'master'

xonsh rc: expanduser is not needed

See merge request dwt1/dotfiles!95
This commit is contained in:
Andy Kipp
2026-03-27 23:56:21 +00:00
+1 -2
View File
@@ -6,14 +6,13 @@
# #
# 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 import subprocess
from pathlib import Path
from xonsh.xontribs import xontribs_load from xonsh.xontribs import xontribs_load
xenv = __xonsh__.env xenv = __xonsh__.env
### ADDING DIRS TO PATH ### ### ADDING DIRS TO PATH ###
for d in ["~/.local/bin", "~/Applications", "~/.local/share/flatpak/exports/share", "/var/lib/flatpak/exports/share"]: for d in ["~/.local/bin", "~/Applications", "~/.local/share/flatpak/exports/share", "/var/lib/flatpak/exports/share"]:
xenv["PATH"].append(Path(d).expanduser()) xenv["PATH"].append(d)
### BASH COMPLETIONS ### ### BASH COMPLETIONS ###
# Xonsh supports using existing Bash completion files. # Xonsh supports using existing Bash completion files.