From 7bb6a459ee7bae784e645b76547f1e663f2d3c8a Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Sat, 25 Aug 2018 15:45:11 +0100 Subject: [PATCH] Fix autoenv's use of zstat --- autoenv/autoenv.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoenv/autoenv.zsh b/autoenv/autoenv.zsh index 689c66c..7ac6426 100644 --- a/autoenv/autoenv.zsh +++ b/autoenv/autoenv.zsh @@ -75,6 +75,9 @@ commands: # Global entered directories array. _autoenv_entered=() +# Load zstat from stat module for inspecting modified time. +zmodload -F zsh/stat b:zstat + # Check if the given file is authorized, if not prompt the user to authorize, # ignore, or view the file. Authorized files and their modified times are # stored in the ~/.cache/autoenv/authorized file to make authorization