You are not logged in.

#1 2009-02-11 12:58:20

adamlau
Member
Registered: 2009-01-30
Posts: 418

'complete -cf sudo' Deprecated?

I am able to tab complete in Terminal (Xfce) without adding the entry into .bashrc, or .bash_profile...


Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce

Offline

#2 2009-02-11 18:14:40

konni
Member
From: berlin
Registered: 2008-09-25
Posts: 99

Re: 'complete -cf sudo' Deprecated?

guess if you enabled bash_completion as well it works without this entry

Offline

#3 2009-02-11 20:02:46

adamlau
Member
Registered: 2009-01-30
Posts: 418

Re: 'complete -cf sudo' Deprecated?

Bash programmable completion was never explicitly sourced, nor do I have a ~/.bash_completion file created, or source entry in ~/.bash_profile, or ~/.bashrc. Perhaps completion is enabled by default these days...


Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce

Offline

#4 2009-02-11 20:45:11

Diaz
Member
From: Portugal
Registered: 2008-04-16
Posts: 366

Re: 'complete -cf sudo' Deprecated?

i think it is enabled by default, at least the last time i look at it. i don't really understand it, but i didn't change anything for it to work, i think...

Offline

#5 2009-02-11 20:55:58

adamlau
Member
Registered: 2009-01-30
Posts: 418

Re: 'complete -cf sudo' Deprecated?

Same thing with sudo tab completion. Any additional comments on this? I would like to add a deprecated tag to associated entries in the Wiki, but at what point did this occur? Have to consider those who have built a stable system and avoid -Syu and maintain their systems manually.

Last edited by adamlau (2009-02-11 20:56:39)


Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce

Offline

#6 2009-02-11 22:07:18

pointone
Wiki Admin
From: Waterloo, ON
Registered: 2008-02-21
Posts: 379

Re: 'complete -cf sudo' Deprecated?

I don't have tab completion with sudo unless I specify "complete -cf sudo". Would you care to try another terminal (XTerm, URxvt) to see if this is a Terminal-specific setting?

Also make sure you haven't set it in your system-wide configs (/etc/profile, /etc/profile.bash, /etc/profile.d/*).


M*cr*s*ft: Who needs quality when you have marketing?

Offline

Board footer

Powered by FluxBB