X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/10d5d9ba84814de3965d222c97b75b210c16e149..4851c2318e2d5ae7274589bac10162214cb11c2a:/etc/zsh/.zshenv diff --git a/etc/zsh/.zshenv b/etc/zsh/.zshenv index f961cfb..e20553d 100644 --- a/etc/zsh/.zshenv +++ b/etc/zsh/.zshenv @@ -214,8 +214,7 @@ if [[ ! -v _sev_setup_xdg ]] { mkdir -m760 ~/.local/share } xdg_data_dirs=($XDG_DATA_HOME /{opt,usr/local,usr/pkg,usr}/share - ${XDG_DATA_DIRS:+"$xdg_data_dirs[@]"}) - xdg_data_dirs=${xdg_data_dirs:#} + ${XDG_DATA_DIRS:+${xdg_data_dirs%%/}}) export XDG_DATA_DIRS typeset -UT XDG_CONFIG_DIRS xdg_config_dirs @@ -226,9 +225,9 @@ if [[ ! -v _sev_setup_xdg ]] { } # I am of the belief .local should follow FHS /usr/local... [[ -e ~/.local/etc ]] || ln -s ~/.config ~/.local/etc - xdg_config_dirs=($XDG_CONFIG_HOME ${XDG_CONFIG_DIRS:+"$xdg_config_dirs[@]"} + xdg_config_dirs=($XDG_CONFIG_HOME + ${XDG_CONFIG_DIRS:+${xdg_config_dirs%%/}} {/opt,/usr/local,/usr/pkg,}/etc/xdg) - xdg_config_dirs=${xdg_config_dirs:#} export XDG_CONFIG_DIRS if [[ -v XDG_STATE_HOME ]] {