diff options
Diffstat (limited to 'Completion/Base/_regex_arguments')
-rw-r--r-- | Completion/Base/_regex_arguments | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Completion/Base/_regex_arguments b/Completion/Base/_regex_arguments index e2858e66c..ba6d330da 100644 --- a/Completion/Base/_regex_arguments +++ b/Completion/Base/_regex_arguments @@ -329,7 +329,9 @@ _regex_arguments () { local regex index first last nullable local i state next - local cache_dir="${compconfig[regex_arguments_path]:-$HOME/.zsh/regex_arguments}" + local cache_dir + _style -s regex argument-path cache_dir + [[ -z "$cache_dir" ]] && cache_dir="$HOME/.zsh/regex_arguments" local cache_file="$cache_dir/$1" local cache_test |