You are not logged in.
After installing a program with pacman, I wasn't able to use autocomplete in bash or zsh for that program, even though I was able to run it. If I made a new terminal autocomplete worked fine, it was only in the terminal I had just used to install the application where the autocomplete didn't work. I found out after a while that I can manually run `hash -r` after installing a package to get this to work. Is there any way I could do this automatically after installing a package, or is there another way I could get autocomplete to work right after installing a package?
Offline
Offline
I set this in my .zshrc, sourced it, and installed a package, but autocomplete still didn't work.
Offline
Your .zshrc is only read when you start a new shell: https://wiki.archlinux.org/index.php/Zs … tion_files
Offline
I think you should create a pacman wrapper that simply runs hash after the pacman command.
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Online