You are not logged in.
Hi,
I've just installed pkgtools and enabled the "command not found" hook (CMD_SEARCH_ENABLED=1 in /etc/pkgtools/pkgfile.conf), but it seems that the function is available for root user only.
For example:
root@argo ~ # showmount
showmount may be found in the following packages:
core/nfs-utils (1.2.3-2) : /usr/sbin/showmount
sandro@argo ~ $ showmount
bash: showmount: command not found
Is this expected? Any way to make it available for normal users?
Thanks in advance
Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better.
(S. Beckett)
Offline
(1/1) installing pkgtools [######################] 100%
- Make sure to run pkgfile --update before use
- pkgfile includes a "command not found" hook for both zsh and bash.
This will automatically run pkgfile whenever you run
a command which the shell cannot find. If you want
this functionality, set CMD_SEARCH_ENABLED to 1 in
/etc/pkgtools/pkgfile.conf (or per-user by copying
that file to ${XDG_CONFIG_HOME}/pkgtools/pkgfile.conf), then
in your current shell run:
source /etc/profile
- An entry has been placed in /etc/cron.daily to run pkgfile --update
If you do not want this functionality, set UPDATE_CRON=0 in /etc/pkgtools/pkgfile.conf![]()
"Its too big and too slow"
Offline
Thanks a lot, rufflove - it now works like a charm!
BTW, I needed to install pkgtools-git from AUR, because of this bug: https://bugs.archlinux.org/task/22843
Cheers
Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better.
(S. Beckett)
Offline