feat(gchup): Add support for loading gchup environment.

This commit is contained in:
Robert Morrison 2024-02-19 15:17:27 +00:00
parent 169cf0c209
commit 9392c2eb19
Signed by: robert
GPG Key ID: 73E012EB3F4EC696

4
zshrc
View File

@ -75,6 +75,10 @@ if [[ -d "/home/linuxbrew" ]]; then
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
fi
if [[ -f ${XDG_DATA_HOME:="$HOME/.local/share"}/ghcup/env ]]; then
source ${XDG_DATA_HOME:="$HOME/.local/share"}/ghcup/env
fi
## Configure Plugins
export ZSH_AUTOSUGGEST_STRATEGY=(completion history) # suggest from completion then history
export ZSH_AUTOSUGGEST_USE_ASYNC=1 # make async for SPEED