bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to autocomplete after 'which'?


From: Peng Yu
Subject: Re: How to autocomplete after 'which'?
Date: Fri, 21 May 2010 23:19:46 -0500

> You will need to source the file that contains the functions:
>
> source /etc/bash_completions
>
> The installation you did most likely added something like this to your
> ~/.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 [ -f /etc/bash_completion ]; then
>    . /etc/bash_completion
> fi

The above code changed the behavior of, for example, cd $DATA<TAB>.
After I type <TAB>, it becomes cd \$DATA. This is not what want. When
it is not sourced, typing <TAB> would not change cd $DATA. Is there a
way to perserve the behavior of cd $DATA<TAB>?



-- 
Regards,
Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]