From 61d26424b6e401f57b38879d0f935fd767aa4859 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Mon, 4 Jan 2010 13:57:46 +0100 Subject: [PATCH] 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 --- 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 b26408260c..2b097de7af 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 5d75569e87..78cdc723d8 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." -- 2.39.2