summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-11-13 10:36:12 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-11-13 10:36:12 +0900
commita66ce3ac6acb115f5a981f7c66e05ed1bcfad08c (patch)
tree98031878d5d585c7d455ba7cf65e89f480e553eb
parent6e08541d12055f99a192bb8d152c3f85b053f32d (diff)
modified zsh/scripts.zsh, modified zsh/scripts.zsh
-rw-r--r--ar/.config/zsh/scripts.zsh2
-rw-r--r--mac/.config/zsh/scripts.zsh2
2 files changed, 2 insertions, 2 deletions
diff --git a/ar/.config/zsh/scripts.zsh b/ar/.config/zsh/scripts.zsh
index 92e10c6..5a47ffa 100644
--- a/ar/.config/zsh/scripts.zsh
+++ b/ar/.config/zsh/scripts.zsh
@@ -348,7 +348,7 @@ function fetch_git_repos_status() {
update_time() {
timestamp_file="${HOME}/.cache/gitreposupdate"
current_time=$(date +%s)
- if [[ -f "$timestamp_file" ]] && (($(cat "$timestamp_file") > (current_time - 86400))); then
+ if [[ -f "$timestamp_file" ]] && (($(cat "$timestamp_file") > (current_time - 21600))); then
return 1 # No update needed
else
echo "$current_time" >"$timestamp_file"
diff --git a/mac/.config/zsh/scripts.zsh b/mac/.config/zsh/scripts.zsh
index 5443b4c..f92a6c4 100644
--- a/mac/.config/zsh/scripts.zsh
+++ b/mac/.config/zsh/scripts.zsh
@@ -346,7 +346,7 @@ function fetch_git_repos_status() {
update_time() {
timestamp_file="${HOME}/.cache/gitreposupdate"
current_time=$(date +%s)
- if [[ -f "$timestamp_file" ]] && (($(cat "$timestamp_file") > (current_time - 86400))); then
+ if [[ -f "$timestamp_file" ]] && (($(cat "$timestamp_file") > (current_time - 21600))); then
return 1 # No update needed
else
echo "$current_time" >"$timestamp_file"