Refactor xonsh config

This commit is contained in:
2022-01-06 16:50:56 -08:00
parent 33372e8300
commit 68d903d628
9 changed files with 96 additions and 91 deletions

11
xonsh/nix.xsh Normal file
View File

@@ -0,0 +1,11 @@
from xonsh.platform import ON_DARWIN
# Nix integration
if ON_DARWIN:
nix_daemon_path = p"/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh"
if nix_daemon_path.exists():
source-bash @(nix_daemon_path)
nix_darwin_path = p"/etc/static/bashrc"
if nix_darwin_path.exists():
source-bash @(nix_darwin_path)