]> git.sesse.net Git - vlc/commitdiff
zsh completion: add all known aliases
authorRafaël Carré <rafael.carre@gmail.com>
Mon, 4 Jan 2010 12:57:46 +0000 (13:57 +0100)
committerRafaël Carré <rafael.carre@gmail.com>
Mon, 4 Jan 2010 12:57:46 +0000 (13:57 +0100)
They will complete even if the alias isn't present in PATH though
Also explicit the need to remove completion cache

extras/analyser/zsh.cpp
extras/analyser/zsh_completion.sh

index b26408260c56fcc4b3f9065b2ed0cc67d9296977..2b097de7afaa81bb23bf3f5b56de4405424becc1 100644 (file)
@@ -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"
index 5d75569e871ef01fbddd54a41b86ecfc83aa3e39..78cdc723d8d25ae2808b37b0f6320e8ebc8e3aea 100755 (executable)
@@ -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."