mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-11-23 08:05:35 +08:00
Use $ACKRC if set, otherwise use $HOME/.ackrc
The $ACKRC environmental variable allows a user to specify a path to his or her Ack config file. If not set, Ack looks for a file in the default location (~/.ackrc). This update makes ack completion follow that same behavior.
This commit is contained in:
1 parent
c7cdfaad3d
commit
dfb3eaa2f6
1 file changed
+1
-1
@@ -166,7 +166,7 @@ _ack() {
|
||||
_ack_types_caching_policy() {
|
||||
|
||||
# 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.
|
||||
local -a oldp
|
||||
|
||||
Reference in new issue
Block a user