From 29729c14ad1edf73065d314f81157f3cff0b82e5 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Thu, 19 Jul 2007 15:53:18 +0000 Subject: 23686: respect TIN_HOMEDIR environment variable. --- ChangeLog | 5 +++++ Completion/Unix/Command/_tin | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 715d2ebf7..165dbd594 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-07-19 Clint Adams + + * Magnus Therning + tweaks: 23686: Completion/Unix/Command/_tin: + respect TIN_HOMEDIR environment variable. + 2007-07-17 Peter Stephenson * 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' \ -- cgit 1.4.1