diff options
author | sandroid | 2024-02-09 22:24:42 +0100 |
---|---|---|
committer | sandroid | 2024-02-09 22:25:46 +0100 |
commit | 91be01c4ddeab752888605b563d2cbd8c7fcacee (patch) | |
tree | f98bf28aff7bc756b6768c751c42b104b2fecbd4 /forgit-git.install | |
parent | 87e64e22f1791ecb03e8b5c7bd9f57f64576012f (diff) | |
download | aur-91be01c4ddeab752888605b563d2cbd8c7fcacee.tar.gz |
Update PKGBUILD and install instructions for zsh completions
The completion definitions for zsh that were previously in completions/git-forgit.zsh and had to be sourced manually on shell startup were moved into completions/_git-forgit, where they are handled automatically by compinit on shell startup. Sourcing a file to get completions is no longer necessary for zsh users.
If you're having issues after updating, and completions for commands such as forgit::add or aliases like ga aren't working, remove your completions cache (~/.zcompdump) and restart your shell.
Diffstat (limited to 'forgit-git.install')
-rw-r--r-- | forgit-git.install | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/forgit-git.install b/forgit-git.install index 7744503ccdaa..10f244659b2b 100644 --- a/forgit-git.install +++ b/forgit-git.install @@ -5,8 +5,7 @@ post_install() { printf "For tab completions source ~/.local/share/bash-completion/completions/git-forgit.bash afterwards\n\n" # zsh printf '%b' "\033[1mZsh\033[0m\n" - printf "To use this package source /usr/share/zsh/plugins/forgit-git/forgit.plugin.zsh\n" - printf "For tab completions source /usr/share/zsh/plugins/forgit-git/completions/git-forgit.zsh afterwards\n" + printf "To use this package source /usr/share/zsh/plugins/forgit-git/forgit.plugin.zsh\n\n" } post_upgrade() { |