12
3
I use the Tab key a lot when I use the shell (bash).
But I'm getting annoyed that ~
always gets expanded to /home/"user"
. I don't think it's always been like this; is there any way to stop this behaviour?
An example:
cj@zap:~$ ls ~/
- Press Tab
cj@zap:~$ ls /home/cj/
I would like to continue to have ~/
and not end up with /home/cj/
.
You might have a look at
shopt -p direxpand
. – gam3 – 2018-10-25T07:12:14.4872"I don't think it always has been like this." - Programmable completion overrides the readline setting
set expand-tilde off
(default or set in~/.inputrc
). – Paused until further notice. – 2010-01-14T09:45:08.493"bind -v | grep tilde" returns "set expand-tilde off" ... so I don't think it will help. – Johan – 2010-01-14T12:30:14.397