* PATCH: _tin respecting TIN_HOMEDIR
@ 2007-07-19 15:48 Clint Adams
0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2007-07-19 15:48 UTC (permalink / raw)
To: zsh-workers; +Cc: Magnus Therning
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' \
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-07-19 15:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-19 15:48 PATCH: _tin respecting TIN_HOMEDIR Clint Adams
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).