You are not logged in.

#1 2015-04-14 22:34:34

gsingh93
Member
Registered: 2013-07-19
Posts: 96

Autocomplete doesn't work for packages that were just installed

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

#2 2015-04-14 23:27:30

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: Autocomplete doesn't work for packages that were just installed

Offline

#3 2015-04-15 17:34:18

gsingh93
Member
Registered: 2013-07-19
Posts: 96

Re: Autocomplete doesn't work for packages that were just installed

I set this in my .zshrc, sourced it, and installed a package, but autocomplete still didn't work.

Offline

#4 2015-04-15 18:23:38

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Autocomplete doesn't work for packages that were just installed

Your .zshrc is only read when you start a new shell: https://wiki.archlinux.org/index.php/Zs … tion_files


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2015-04-15 19:27:48

progandy
Member
Registered: 2012-05-17
Posts: 5,203

Re: Autocomplete doesn't work for packages that were just installed

I think you should create a pacman wrapper that simply runs hash after the pacman command.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

Board footer

Powered by FluxBB