summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_tin2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 715d2ebf7..165dbd594 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-07-19  Clint Adams  <clint@zsh.org>
+
+	* Magnus Therning + tweaks: 23686: Completion/Unix/Command/_tin:
+	respect TIN_HOMEDIR environment variable.
+
 2007-07-17  Peter Stephenson  <pws@csr.com>
 
 	* 23682: Src/module.c: missed cases where m->name should
diff --git a/Completion/Unix/Command/_tin b/Completion/Unix/Command/_tin
index 21525c35d..c63ccd9e6 100644
--- a/Completion/Unix/Command/_tin
+++ b/Completion/Unix/Command/_tin
@@ -37,7 +37,7 @@ _arguments -C -s \
   '::newsgroup:_newsgroups' && return 0
 
 if [[ "$state" = newshosts ]]; then
-  newshosts=( ${${(f)"$(<~/.tin/newsrctable)"}%%\#*} ) 2>/dev/null
+  newshosts=( ${${(f)"$(<${TIN_HOMEDIR:-$HOME}/.tin/newsrctable)"}%%\#*} ) 2>/dev/null
   _tags hosts nicknames
   while _tags; do
     _requested hosts expl 'NNTP server hostname' \