On Thu, Jul 19, 2007 at 11:35:12AM +0100, Magnus Therning wrote:
> The completion for tin doesn't take into account the TIN_HOMEDIR
> environment variable when looking for newshosts. Here's a fix for that:
>
> --- /usr/share/zsh/4.3.4/functions/Completion/Unix/_tin 2007-07-02
> 14:51:17.000000000 +0100
> +++ /home/magnusth/.zsh/completion/_tin 2007-07-19 11:30:29.000000000
> +0100
> @@ -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' \
I'm gonna stick a colon in there, since it doesn't do much good not
having one, I think.
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' \
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]