From ddcfa79e7206708c06315375a687db41b6efbf48 Mon Sep 17 00:00:00 2001 From: nepoz Date: Wed, 7 Jul 2021 14:34:26 -0500 Subject: [PATCH] Added documentation for sourcing config file on Pacman installs --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 3cfd2e8..0f9b58c 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,11 @@ If you invoke the `forward-word` widget, it will partially accept the suggestion You may want to override the default global config variables. Default values of these variables can be found [here](src/config.zsh). +**For Arch installs with Pacman:** If you install zsh-autosuggestions using pacman, the default config location is `/usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh`. Add the following line to `~/.zshrc` and source it for completions to be offered: +``` sh +source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh +``` + **Note:** If you are using Oh My Zsh, you can put this configuration in a file in the `$ZSH_CUSTOM` directory. See their comments on [overriding internals](https://github.com/robbyrussell/oh-my-zsh/wiki/Customization#overriding-internals).