about summary refs log tree commit diff
path: root/Completion/Unix/Command/_tin
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2007-07-19 15:53:18 +0000
committerClint Adams <clint@users.sourceforge.net>2007-07-19 15:53:18 +0000
commit29729c14ad1edf73065d314f81157f3cff0b82e5 (patch)
treead746a46782d41137e44e84608085065b6883c2a /Completion/Unix/Command/_tin
parent6ad26558025b82fee66ed73c83950438cea6c3a0 (diff)
downloadzsh-29729c14ad1edf73065d314f81157f3cff0b82e5.tar.gz
zsh-29729c14ad1edf73065d314f81157f3cff0b82e5.tar.xz
zsh-29729c14ad1edf73065d314f81157f3cff0b82e5.zip
23686: respect TIN_HOMEDIR environment variable.
Diffstat (limited to 'Completion/Unix/Command/_tin')
-rw-r--r--Completion/Unix/Command/_tin2
1 files changed, 1 insertions, 1 deletions
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' \