Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: _tin respecting TIN_HOMEDIR



This is from Magnus Therning, slightly tweaked, and I forgot to Cc it to
the list.

Index: Completion/Unix/Command/_tin
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_tin,v
retrieving revision 1.1
diff -u -r1.1 _tin
--- Completion/Unix/Command/_tin	2 Apr 2001 12:04:41 -0000	1.1
+++ Completion/Unix/Command/_tin	19 Jul 2007 15:29:59 -0000
@@ -37,7 +37,7 @@
   '::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' \



Messages sorted by: Reverse Date, Date, Thread, Author