I have a newly-reimaged VPS server. Bash tab completion and history (via the arrow keys) works as expected on the root account but is totally absent on my lower-privileged account. I also can't navigate within a command I enter to fix typos by using the arrow keys - I just get something like ^[[D
at the terminal instead. My .bashrc
is
# enable bash completion in interactive shells
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
Any thoughts on how to fix this problem? Thank you!
$SHELL
Bash or sh?