diff options
-rw-r--r-- | bash/bash_completion.d/keep.bash | 2 | ||||
-rw-r--r-- | bash/bashrc.d/keep.bash | 4 | ||||
-rw-r--r-- | ksh/kshrc.d/keep.ksh | 4 | ||||
-rw-r--r-- | zsh/zshrc.d/keep.zsh | 4 |
4 files changed, 7 insertions, 7 deletions
diff --git a/bash/bash_completion.d/keep.bash b/bash/bash_completion.d/keep.bash index 4b479eca..8bb4615f 100644 --- a/bash/bash_completion.d/keep.bash +++ b/bash/bash_completion.d/keep.bash @@ -44,7 +44,7 @@ _keep() { fi # Build list of kept names - bashkeep=${BASHKEEP:-"$HOME"/.bashkeep.d} + bashkeep=${XDG_DATA_HOME:-"$HOME"/.local/share}/bashkeep for keep in "$bashkeep"/"$2"*.bash ; do # Skip directories ! [[ -d $keep ]] || continue diff --git a/bash/bashrc.d/keep.bash b/bash/bashrc.d/keep.bash index 6796aae7..2e2424a3 100644 --- a/bash/bashrc.d/keep.bash +++ b/bash/bashrc.d/keep.bash @@ -29,7 +29,7 @@ keep() { # Figure out the directory to which we're reading and writing these scripts local bashkeep - bashkeep=${BASHKEEP:-"$HOME"/.bashkeep.d} + bashkeep=${XDG_DATA_HOME:-"$HOME"/.local/share}/bashkeep mkdir -p -- "$bashkeep" || return # Parse options @@ -140,7 +140,7 @@ EOF } # Load any existing scripts in bashkeep -for bashkeep in "${BASHKEEP:-"$HOME"/.bashkeep.d}"/*.bash ; do +for bashkeep in "${XDG_DATA_HOME:-"$HOME"/.local/share}"/bashkeep/*.bash ; do [[ -e $bashkeep ]] || continue source "$bashkeep" done 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 diff --git a/zsh/zshrc.d/keep.zsh b/zsh/zshrc.d/keep.zsh index 869d2039..ddcb96e2 100644 --- a/zsh/zshrc.d/keep.zsh +++ b/zsh/zshrc.d/keep.zsh @@ -29,7 +29,7 @@ keep() { # Figure out the directory to which we're reading and writing these scripts local zshkeep - zshkeep=${ZSHKEEP:-"$HOME"/.zshkeep.d} + zshkeep=${XDG_DATA_HOME:-"$HOME"/.local/share}/zshkeep mkdir -p -- "$zshkeep" || return # Parse options @@ -141,7 +141,7 @@ EOF } # Load any existing scripts in zshkeep -for zshkeep in "${ZSHKEEP:-"$HOME"/.zshkeep.d}"/*.zsh(N) ; do +for zshkeep in "${XDG_DATA_HOME:-"$HOME"/.local/share}"/zshkeep/*.zsh ; do [[ -e $zshkeep ]] || continue source "$zshkeep" done |