aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Schlarb <alexander@ninetailed.ninja>2018-09-17 23:37:00 +0200
committerChristian Duerr <chrisduerr@users.noreply.github.com>2018-09-17 21:37:00 +0000
commite2c1e56b257f1a16f8e4b620b3abc328cd551784 (patch)
tree3b6b2bfee4e64b9bf6d4ad16a8e41afa818e03f3
parent35ea0cded20aac5fa40859a22b95979d15018c51 (diff)
downloadalacritty-e2c1e56b257f1a16f8e4b620b3abc328cd551784.tar.gz
alacritty-e2c1e56b257f1a16f8e4b620b3abc328cd551784.zip
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.
-rw-r--r--Cargo.toml2
-rw-r--r--README.md13
2 files changed, 12 insertions, 3 deletions
diff --git a/Cargo.toml b/Cargo.toml
index bba25503..46f93e08 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -77,6 +77,6 @@ assets = [
["alacritty.desktop", "usr/share/applications/", "644"],
["alacritty-completions.bash", "usr/share/bash-completion/completions/alacritty", "644"],
["alacritty-completions.fish", "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"],
["alacritty.info", "usr/share/terminfo/a/alacritty", "644"],
]
diff --git a/README.md b/README.md
index b1fb92f5..33bca532 100644
--- a/README.md
+++ b/README.md
@@ -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:
+
+```sh
+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:
+
+```sh
+cp alacritty-completions.zsh ${ZDOTDIR:-~}/.zsh_functions/_alacritty
```
### Bash