[vlc-devel] commit: zsh completion: add all known aliases ( Rafaël Carré )

git version control git at videolan.org
Mon Jan 4 13:59:15 CET 2010


vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Mon Jan  4 13:57:46 2010 +0100| [61d26424b6e401f57b38879d0f935fd767aa4859] | committer: Rafaël Carré 

zsh completion: add all known aliases

They will complete even if the alias isn't present in PATH though
Also explicit the need to remove completion cache

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=61d26424b6e401f57b38879d0f935fd767aa4859
---

 extras/analyser/zsh.cpp           |    2 +-
 extras/analyser/zsh_completion.sh |    5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/extras/analyser/zsh.cpp b/extras/analyser/zsh.cpp
index b264082..2b097de 100644
--- a/extras/analyser/zsh.cpp
+++ b/extras/analyser/zsh.cpp
@@ -72,7 +72,7 @@ int main( int i_argc, const char **ppsz_argv )
         return 1;
     }
 
-    printf("#compdef vlc\n\n"
+    printf("#compdef vlc cvlc rvlc svlc mvlc qvlc nvlc\n\n"
 
            "#This file is autogenerated by zsh.cpp\n"
            "typeset -A opt_args\n"
diff --git a/extras/analyser/zsh_completion.sh b/extras/analyser/zsh_completion.sh
index 5d75569..78cdc72 100755
--- a/extras/analyser/zsh_completion.sh
+++ b/extras/analyser/zsh_completion.sh
@@ -114,5 +114,6 @@ read i
 echo "Installing completion ..."
 sudo sh -c "chown 0:0 _vlc && chmod 0644 _vlc && mv _vlc $ZSH_FPATH" || exit 1
 
-echo "zsh completion for VLC successfully installed :)
-Restart running zsh instances, or run \"compinit\" to start using it."
+echo "zsh completion for VLC successfully installed :)"
+echo "Restart running zsh instances after removing ~/.zcompdump, or"
+echo "run \"compinit\" to start using it."




More information about the vlc-devel mailing list