Manual for apt
Ralf Mardorf
silver.bullet at zoho.com
Sat Sep 3 12:56:54 UTC 2016
On Sat, 3 Sep 2016 14:50:34 +0200, Ralf Mardorf wrote:
>On Sat, 03 Sep 2016 14:23:50 +0200, Oliver Grawert wrote:
>>On Sa, 2016-09-03 at 12:57 +0200, Ralf Mardorf wrote:
>>> as a side note, for both, apt and apt-get I noticed that
>>> auto-completion does work after "sudo -i", but not after "su".
>>>
>>you might find that for more tools, simply because su (on purpose)
>>drops all environment while sudo carries parts or even all of it over
>>(depending on how you invoke it).
>>
>>which also results in one processing the users ~/.bashrc and the other
>>not ...
>>if you check your ~/.bashrc you will find the lines that source the
>>bash_completion db.
>
>Hm?
>
>[root at moonstudio weremouse]# grep "programmable completion features"
>-A5 ~/.bashrc
Oops, my bad
[root at moonstudio weremouse]# grep "programmable completion features"
-A10 /home/weremouse/.bashrc # enable programmable completion features
(you don't need to enable # this, if it's already enabled
in /etc/bash.bashrc and /etc/profile # sources /etc/bash.bashrc).
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
More information about the ubuntu-users
mailing list