Skip to content

Commit

Permalink
changed cache path to .cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaya-Sem committed Sep 30, 2024
1 parent 26b8712 commit f4bb3b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions completions/bash_completion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

_commandtrein(){
# Use a cache that will update every week
file="$HOME/.config/commandtrein/$(date +'%m-%Y').txt"
file="$HOME/.cache/commandtrein/$(date +'%m-%Y').txt"

if ! [ -f "$file" ]; then
mkdir -p "$HOME/.config/commandtrein/"
mkdir -p "$HOME/.cache/commandtrein/"
# Assumes that the binary is called commandtrein
commandtrein search > "$file"
fi
Expand Down

0 comments on commit f4bb3b6

Please sign in to comment.