epm: fix for xdg-dir

This commit is contained in:
Kolby Crouch 2021-08-09 13:58:41 -05:00 committed by Qi Xiao
parent 00760eb726
commit ba156db4d6

View File

@ -109,7 +109,14 @@ debug-mode = $false
]
# Internal configuration
-data-dir = ~/.elvish
-data-dir = (
if (not-eq $E:XDG_DATA_HOME '') {
put $E:XDG_DATA_HOME/elvish
} else {
put ~/.local/share/elvish
}
)
-lib-dir = $-data-dir/lib
# General utility functions