You are not logged in.
I have an alias defined in my '~/.bashrc':
alias pkgrm='sudo pacman -R'
> type pkgrm
pkgrm is aliased to `sudo pacman -R'
When I type 'pkgrm <tab>' I get an error:
/bin/ls: cannot access /var/sadm/pkg: No such file or directory
Nothing is wrong with the error message as this directory is in fact not there.
However, when I use the aliased command itself, everything works as expected:
> sudo pacman -R a<tab>
a52dec acpid alsa-utils...
Could you shed some light on what's going on behind the scenes here?
Offline
Have you done something special to set up this completion? I do not get package names from the competion just with `pacman -R`.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I've always had the same problem as the OP, just never got round to posting about it. A solution would make my systemctl aliases much more useful.
@Trilby, you need the bash-completion package installed.
Last edited by Slithery (2015-01-06 21:50:34)
Offline