There does not appear to be a method to dump the cache of hashed items
system-wide.
What you can do is using an alias/function to install programs, like:
ainst() {
sudo apt-get install $*
type rehash > /dev/null && rehash
}
This would automatically call `rehash` after installing any programs.
You might want to test for $UID therein, because "sudo" should not be
used with the root user.
See https://github.com/blueyed/oh-my-
zsh/blob/master/plugins/apt/apt.plugin.zsh for some inspiration.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/619409
Title:
dpkg/apt-get should automatically update zshs cache
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zsh/+bug/619409/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs