1
0
mirror of https://github.com/alrayyes/dotfiles/ synced 2023-11-14 15:56:30 +00:00

added xdg environment variables to fish & npm env variable to fish & zsh

This commit is contained in:
Ryan Kes 2020-09-11 00:51:07 +02:00
parent 8a375478f4
commit b37265eb1f
2 changed files with 21 additions and 0 deletions

View File

@ -89,6 +89,24 @@ set -xg RUSTUP_HOME ~/.local/share/rustup
# Golang # Golang
set -xg GOPATH ~/.local/share/go 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 # nvim alias
abbr --add v 'nvim' abbr --add v 'nvim'
abbr --add sv 'sudo nvim' abbr --add sv 'sudo nvim'

View File

@ -59,6 +59,9 @@ export RUSTUP_HOME=~/.local/share/rustup
# Golang # Golang
export GOPATH=~/.local/share/go export GOPATH=~/.local/share/go
# Npm
export NPM_CONFIG_USERCONFIG=$XDG_CONFIG_HOME/npm/npmrc
# Enable icons in lf # Enable icons in lf
export LF_ICONS="\ export LF_ICONS="\
tw=:\ tw=:\