-
Notifications
You must be signed in to change notification settings - Fork 4
/
.xdg.dirs
27 lines (23 loc) · 911 Bytes
/
.xdg.dirs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# https://wiki.archlinux.org/title/XDG_Base_Directory
# https://gist.github.com/sharadhr/39b804236c1941e9c30d90af828ad41e#214xdg-user-dirs
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_LOGS_HOME="$HOME/.cache/logs"
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_STATE_HOME="$HOME/.local/state"
case $OSTYPE in darwin*)
# https://www.freedesktop.org/wiki/Software/xdg-user-dirs/
export XDG_DESKTOP_DIR="$HOME/Desktop"
export XDG_DOCUMENTS_DIR="$HOME/Documents"
export XDG_DOWNLOAD_DIR="$HOME/Downloads"
export XDG_MUSIC_DIR="$HOME/Music"
export XDG_PICTURES_DIR="$HOME/Pictures"
export XDG_PUBLICSHARE_DIR="$HOME/Public"
export XDG_TEMPLATES_DIR="$HOME/Templates"
export XDG_VIDEOS_DIR="$HOME/Videos"
esac
# TODO: get rid of this
# case $OSTYPE in linux*)
# esac
# XDG_DATA_DIRS=/usr/local/share:/usr/share
# XDG_CONFIG_DIRS