Shell-Vervollständigungen
Shell-Vervollständigungen sind Befehlszeilenvervollständigungen für eine bestimmte Shell, wie z.B. Bash, fish oder Zsh.
RPM-Makros
Die folgenden Makros MÜSSEN anstelle von fest kodierten Pfaden verwendet werden.
| macro | definition |
|---|---|
%{bash_completions_dir} |
%{_datadir}/bash-completion/completions |
%{fish_completions_dir} |
%{_datadir}/fish/vendor_completions.d |
%{zsh_completions_dir} |
%{_datadir}/zsh/site-functions |
Paketierung von Shell-Vervollständigungen
Shell-Vervollständigungsdateien MÜSSEN die Standarddateizugriffsrechte (0644) verwenden.
Beispiel für die Paketierung von Shell-Vervollständigungen
Name: foo
...
%install
...
# Bash completion
install -Dpm 0644 foo.bash -t %{buildroot}%{bash_completions_dir}
# Fish completion
install -Dpm 0644 foo.fish -t %{buildroot}%{fish_completions_dir}
# Zsh completion
install -Dpm 0644 _foo -t %{buildroot}%{zsh_completions_dir}
...
%files
%{bash_completions_dir}/foo.bash
%{fish_completions_dir}/foo.fish
%{zsh_completions_dir}/_foo
Want to help? Learn how to contribute to Fedora Docs ›