From 707f4293667d4d8564ab0afc13128463c2ee7fd5 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sun, 30 Jun 2019 18:04:09 +0200 Subject: [PATCH] Suggest installing fish completions per-user This uses $fish_complete_path[1], which should be in the user's home directory, so `sudo` is no longer needed. --- INSTALL.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index 9a8265a2..ba9b436a 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -316,11 +316,10 @@ echo "source ~/.bash_completion/alacritty" >> ~/.bashrc To install the completions for fish, run ``` -sudo cp extra/completions/alacritty.fish $__fish_data_dir/vendor_completions.d/alacritty.fish +mkdir -p $fish_complete_path[1] +cp extra/completions/alacritty.fish $fish_complete_path[1]/alacritty.fish ``` -**Note:** For fish versions below 3.0 `$__fish_datadir` must be used instead. - ## Terminfo The terminfo database contains entries describing the terminal