How can I setup bash completion for the unset command, like when you use echo $XXX, you can get a completion for XXX?
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
|
||||
|
You need to turn on bash's programmable completion system. There's a file called
If this file is not present on your system, it may be in a separate package from the main bash executable, e.g. If you specifically want completion for the
|
|||
|
|
|
On my Ubuntu/Bash system:
|
|||
|
|
unset TM<tab>and nothing appears , butunset $TM<tab>, which is not the case ... – warl0ck Dec 31 '11 at 13:55yum install bash-completion.) – mattdm♦ Dec 31 '11 at 15:10