mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-09-26 23:04:40 +00:00
Merge pull request #124 from brandt/master
Use $ACKRC if set, otherwise use $HOME/.ackrc
This commit is contained in:
@@ -166,7 +166,7 @@ _ack() {
|
|||||||
_ack_types_caching_policy() {
|
_ack_types_caching_policy() {
|
||||||
|
|
||||||
# Rebuild if ackrc more recent than cache.
|
# Rebuild if ackrc more recent than cache.
|
||||||
[[ -f $HOME/.ackrc && $$HOME/.ackrc -nt "$1" ]] && return 0
|
[[ -f ${ACKRC:-$HOME/.ackrc} && ${ACKRC:-$HOME/.ackrc} -nt "$1" ]] && return 0
|
||||||
|
|
||||||
# Rebuild if cache is older than one week.
|
# Rebuild if cache is older than one week.
|
||||||
local -a oldp
|
local -a oldp
|
||||||
|
|||||||
Reference in New Issue
Block a user