Commit e2c1e56b authored by Alexander Schlarb's avatar Alexander Schlarb Committed by Christian Duerr

Give zsh completion file the correct name when installing with `cargo deb --install`

The zsh completion name for the deb installer has been corrected.

The installation instructions for the zsh completions have also been
updated to make it possible to install them without root permissios.
parent 35ea0cde
......@@ -77,6 +77,6 @@ assets = [
["alacritty.desktop", "usr/share/applications/", "644"],
["alacritty-completions.bash", "usr/share/bash-completion/completions/alacritty", "644"],
["", "usr/share/fish/completions/alacritty", "644"],
["alacritty-completions.zsh", "usr/share/zsh/functions/Completion/alacritty", "644"],
["alacritty-completions.zsh", "usr/share/zsh/vendor-completions/_alacritty", "644"],
["", "usr/share/terminfo/a/alacritty", "644"],
......@@ -295,10 +295,19 @@ To get automatic completions for alacritty's flags and arguments you can install
### Zsh
To install the completions for zsh, run
To install the completions for zsh, you can place the `alacritty-completions.zsh` as `_alacritty` in any directory referenced by `$fpath`.
If you do not already have such a directory registered through your `~/.zshrc`, you can add one like this:
mkdir -p ${ZDOTDIR:-~}/.zsh_functions
echo 'fpath+=${ZDOTDIR:-~}/.zsh_functions' >> ${ZDOTDIR:-~}/.zshrc
sudo cp alacritty-completions.zsh /usr/share/zsh/functions/Completion/X/_alacritty
Then copy the completion file to this directory:
cp alacritty-completions.zsh ${ZDOTDIR:-~}/.zsh_functions/_alacritty
### Bash
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment