From d6d0297b10fb1ad4143633140414f8c5631016d6 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 1 Dec 2011 14:55:28 +0000 Subject: complete directories in _nm --- ChangeLog | 5 ++++- Completion/Unix/Command/_nm | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index ae8cf1aba..09bd14c7d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2011-12-01 Peter Stephenson + * unposted: Completion/Unix/Command/_nm: also complete + directories. + * 29923: Test/A04redirect.ztst: work around variant message from strerror() for invalid file descriptor. @@ -15632,5 +15635,5 @@ ***************************************************** * This is used by the shell to define $ZSH_PATCHLEVEL -* $Revision: 1.5510 $ +* $Revision: 1.5511 $ ***************************************************** diff --git a/Completion/Unix/Command/_nm b/Completion/Unix/Command/_nm index 276a38f19..5638014d6 100644 --- a/Completion/Unix/Command/_nm +++ b/Completion/Unix/Command/_nm @@ -22,7 +22,8 @@ case $state in "object-files:object file:_path_files -g '*.o'" \ "executable-files:executable file:_path_files -g '*(*)'" \ "dynamic-libraries:dynamic library:_path_files -g '*.so'" \ - "static-libraries:static library:_path_files -g '*.a'" && ret=0 + "static-libraries:static library:_path_files -g '*.a'" \ + "directories:directory:_path_files -g '*(/)'" && ret=0 ;; esac -- cgit 1.4.1