zsh-workers
 help / color / mirror / code / Atom feed
* The completion for infocmp won't work in Debian
@ 2013-02-09  7:07 Morita Sho
  2013-02-09 12:12 ` Axel Beckert
  0 siblings, 1 reply; 2+ messages in thread
From: Morita Sho @ 2013-02-09  7:07 UTC (permalink / raw)
  To: zsh-workers

Hi,

I noticed that the completion for infocmp won't work in Debian.

  % infocmp [TAB]

will not complete any terminfo that is available in the system.

In Debian, terminfo files are placed on /lib/terminfo and /etc/terminfo.[1]
But infocmp completion won't searches these directories.
According to Completion/Unix/Type/_terminals [2], the current search path is specified as follow:

  #compdef infocmp -value-,TERM,-default-
  local desc expl
  desc=( $TERMINFO ~/.terminfo $TERMINFO_DIRS /usr/{,share/}{,lib/}terminfo )

[1] http://packages.debian.org/sid/all/ncurses-base/filelist
[2]
http://zsh.git.sourceforge.net/git/gitweb.cgi?p=zsh/zsh;a=blob;f=Completion/Unix/Type/_terminals;h=59f8d4d8762da7d00d1e9d2a41f42332be00e916;hb=HEAD


Could you add /lib/terminfo and /etc/terminfo to the search path for infocmp completion?

diff --git a/Completion/Unix/Type/_terminals b/Completion/Unix/Type/_terminals
index 59f8d4d..04ece11 100644
--- a/Completion/Unix/Type/_terminals
+++ b/Completion/Unix/Type/_terminals
@@ -2,7 +2,7 @@

 local desc expl

-desc=( $TERMINFO ~/.terminfo $TERMINFO_DIRS /usr/{,share/}{,lib/}terminfo )
+desc=( $TERMINFO ~/.terminfo $TERMINFO_DIRS /usr/{,share/}{,lib/}terminfo /{etc,lib}/terminfo )

 _wanted terminals expl 'terminal name' \
     compadd "$@" - $desc/*/*(N:t)


Regards,

-- 
Morita Sho <morita-pub-en@inz.sakura.ne.jp>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-02-09 12:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-09  7:07 The completion for infocmp won't work in Debian Morita Sho
2013-02-09 12:12 ` Axel Beckert

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).