You are not logged in.

#1 2011-06-03 05:14:16

just-22
Member
From: Milano, Italy
Registered: 2011-05-17
Posts: 3

pkgfile "command not found" hook - Only for root?

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

#2 2011-06-18 01:49:25

rufflove
Member
From: Holmfirth, UK
Registered: 2010-11-22
Posts: 96

Re: pkgfile "command not found" hook - Only for root?

(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

tongue


"Its too big and too slow"

Offline

#3 2011-06-27 20:28:45

just-22
Member
From: Milano, Italy
Registered: 2011-05-17
Posts: 3

Re: pkgfile "command not found" hook - Only for root?

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

Board footer

Powered by FluxBB