1) Edit .bashrc
prompt%> cd
prompt%> vi .bashrc
2) Add the following lines:
# Disable Tilde Expansion
_expand()
{
return 0;
}
3) Try it out on a new terminal
For those interested, see: /etc/bash_completion Look for "tilde".
References:
* http://www.linuxquestions.org/questions/linux-software-2/how-to-stop-bash-from-replacing-with-homeusername-643162/
Thanks, was really annoyed by the automatic expansion :)
ReplyDeleteBetter to use:
ReplyDelete_expand() {
eval cur=$cur
}
To keep auto-completion of e.g. "unzip archive.zip".