summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsmith <zsmith@newhopechurch.tv>2025-08-11 15:40:58 -0500
committerzsmith <zsmith@newhopechurch.tv>2025-08-11 15:40:58 -0500
commit7c13b751d2001c3ec8bbd4b22e4716267d3cd3e3 (patch)
treeebb7048a1e1a26069e615fcc24c29e54e45f3cb9
parent15e94d2694f8e84b0fa4454200c1c5bd0c449089 (diff)
Only source user-dirs file when it existsmac
-rw-r--r--sh/profile2
1 files changed, 1 insertions, 1 deletions
diff --git a/sh/profile b/sh/profile
index e17f02d..abc7f66 100644
--- a/sh/profile
+++ b/sh/profile
@@ -2,7 +2,7 @@
export XDG_DATA_HOME=${XDG_DATA_HOME:="$HOME/.local/share"}
export XDG_CACHE_HOME=${XDG_CACHE_HOME:="$HOME/.cache"}
export XDG_CONFIG_HOME=${XDG_CONFIG_HOME:="$HOME/.config"}
-. "$HOME/.config/user-dirs.dirs"
+[ -f "$XDG_CONFIG_HOME/user-dirs.dirs" ] && . "$HOME/.config/user-dirs.dirs"
export XDG_CURRENT_DESKTOP="Hyprland"
export XDG_DOCUMENTS_DIR=${HOME}/Documents
export XDG_DOWNLOAD_DIR=${HOME}/Downloads