From e292eb508413b9174684a8e75c93474a7f5351ee Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 23 Aug 2021 23:07:31 -0500 Subject: Initial --- bootstrap/profile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 bootstrap/profile (limited to 'bootstrap/profile') diff --git a/bootstrap/profile b/bootstrap/profile new file mode 100644 index 0000000..4cb459d --- /dev/null +++ b/bootstrap/profile @@ -0,0 +1,17 @@ +# profile +# vim:ft=sh + +# XDG directories +export XDG_CONFIG_HOME="$HOME/etc" +export XDG_CACHE_HOME="$HOME/var/cache" +export XDG_DATA_HOME="$HOME/usr/share" + +export XDG_DATA_DIRS="${XDG_DATA_DIRS:-/usr/local/share:/usr/share}" +export XDG_CONFIG_DIRS="${XDG_CONFIG_DIRS:-/etc/xdg}" + +# source files in $XDG_CONFIG_HOME/profile +if [ -d "$XDG_CONFIG_HOME/profile" ]; then + for file in "$XDG_CONFIG_HOME"/profile/*.sh; do + [ -r "$file" ] && . "$file" + done +fi -- cgit 1.4.1-21-gabe81