Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: _tin respecting TIN_HOMEDIR
- X-seq: zsh-workers 23686
- From: Clint Adams <clint@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: PATCH: _tin respecting TIN_HOMEDIR
- Date: Thu, 19 Jul 2007 11:48:43 -0400
- Cc: Magnus Therning <magnus@xxxxxxxxxxxx>
- Mail-followup-to: zsh-workers@xxxxxxxxxx, Magnus Therning <magnus@xxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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