xonshrc: expanduser is not needed

This commit is contained in:
Andy Kipp
2026-01-30 06:52:34 +00:00
parent 89f943ae0f
commit 2aa050ddee
+1 -2
View File
@@ -6,14 +6,13 @@
#
# 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
xenv = __xonsh__.env
### ADDING DIRS TO PATH ###
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 ###
# Xonsh supports using existing Bash completion files.