disable autocomplete of the home path

Carsten Aulbert carsten at welcomes-you.com
Wed Feb 7 15:29:27 UTC 2007


Rares Vernica wrote:
> In Bash, when I type something like "~/" and I press TAB, the "~" is 
> replaced with the path to my home (e.g. "/home/username"). I would like 
> to turn this feature off. Is it possible?

That is a yes

> I don't want to turn off the other auto-completion features, like 
> directory and file names auto-completion, just the "~" replacement.

That's the harder part. My guess is, it belongs to the readline interface
Thus putting 'set tilde-expand Off' in ~/.incputrc *should* alter that,
according to 'man bash' or 'man readline', however, I didn't succeed.

Maybe you should search in that direction.

Carsten





More information about the ubuntu-users mailing list