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

The completion for infocmp won't work in Debian



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@xxxxxxxxxxxxxxxx>



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