aboutsummaryrefslogtreecommitdiff
path: root/ksh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-04-22 12:12:38 +1200
committerTom Ryder <tom@sanctum.geek.nz>2020-04-22 12:14:55 +1200
commit044b3ff40697d9ae0d8e708a2e0c5320db0158e0 (patch)
treeda254a8532c070712d96260c80cfcae020f61810 /ksh
parentUse XDG base directories for .dotfiles.conf (diff)
downloaddotfiles-044b3ff40697d9ae0d8e708a2e0c5320db0158e0.tar.gz
dotfiles-044b3ff40697d9ae0d8e708a2e0c5320db0158e0.zip
Use XDG base directories for shell keep() funcs
Diffstat (limited to 'ksh')
-rw-r--r--ksh/kshrc.d/keep.ksh4
1 files changed, 2 insertions, 2 deletions
diff --git a/ksh/kshrc.d/keep.ksh b/ksh/kshrc.d/keep.ksh
index c1546deb..f61a7a4d 100644
--- a/ksh/kshrc.d/keep.ksh
+++ b/ksh/kshrc.d/keep.ksh
@@ -40,7 +40,7 @@ function keep {
# Figure out the directory to which we're reading and writing these scripts
typeset kshkeep
- kshkeep=${KSHKEEP:-"$HOME"/.kshkeep.d}
+ kshkeep=${XDG_DATA_HOME:-"$HOME"/.local/share}/kshkeep
mkdir -p -- "$kshkeep" || return
# Parse options
@@ -152,7 +152,7 @@ EOF
}
# Load any existing scripts in kshkeep
-for kshkeep in "${KSHKEEP:-"$HOME"/.kshkeep.d}"/*.ksh ; do
+for kshkeep in "${XDG_DATA_HOME:-"$HOME"/.local/share}"/kshkeep/*.ksh ; do
[[ -e $kshkeep ]] || continue
source "$kshkeep"
done