From b37265eb1f95a97e989cffe4357ec4d7fe26e5c5 Mon Sep 17 00:00:00 2001 From: Ryan Kes <> Date: Fri, 11 Sep 2020 00:51:07 +0200 Subject: [PATCH] added xdg environment variables to fish & npm env variable to fish & zsh --- fish/.config/omf/init.fish | 18 ++++++++++++++++++ zsh/.zshenv | 3 +++ 2 files changed, 21 insertions(+) diff --git a/fish/.config/omf/init.fish b/fish/.config/omf/init.fish index f27217f..733872f 100644 --- a/fish/.config/omf/init.fish +++ b/fish/.config/omf/init.fish @@ -89,6 +89,24 @@ set -xg RUSTUP_HOME ~/.local/share/rustup # Golang set -xg GOPATH ~/.local/share/go +# System +set -xg XDG_DATA_DIRS /usr/share /usr/local/share +set -xg XDG_CONFIG_DIRS /etc/xdg + +# User +set -xg XDG_CACHE_HOME $HOME/.cache +set -xg XDG_CONFIG_HOME $HOME/.config +set -xg XDG_DATA_HOME $HOME/.local/share +set -xg XDG_DESKTOP_DIR $HOME/Desktop +set -xg XDG_DOWNLOAD_DIR $HOME/Downloads +set -xg XDG_DOCUMENTS_DIR $HOME/Documents +set -xg XDG_MUSIC_DIR $HOME/Music +set -xg XDG_PICTURES_DIR $HOME/Pictures +set -xg XDG_VIDEOS_DIR $HOME/Videos + +# Npm +set -xg NPM_CONFIG_USERCONFIG $XDG_CONFIG_HOME/npm/npmrc + # nvim alias abbr --add v 'nvim' abbr --add sv 'sudo nvim' diff --git a/zsh/.zshenv b/zsh/.zshenv index de12eea..e872abe 100644 --- a/zsh/.zshenv +++ b/zsh/.zshenv @@ -59,6 +59,9 @@ export RUSTUP_HOME=~/.local/share/rustup # Golang export GOPATH=~/.local/share/go +# Npm +export NPM_CONFIG_USERCONFIG=$XDG_CONFIG_HOME/npm/npmrc + # Enable icons in lf export LF_ICONS="\ tw=:\