Ubuntu 10.04 - tab completion broken on non-root accounts?
useradd -m name
… tab completion does not work for that account. Hitting tab gives whitespace. In addition, the prompt for the new account is different, despite having a virtually identical .bashrc as root.
diff /root/.bashrc /home/name/.bashrc gives:
97,99c97,99
< #if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
< # . /etc/bash_completion
< #fi
---
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
The /bash/completion if block is actually UNCOMMENTED in the user .bashrc, not the other way around. I tried commenting out to see if that made a difference and it did not.
Something doesn't seem right. I also tried installing the bash_completion package to no avail.
Any tips?
2 Replies
@jjwebster:
useradd -m name
Try also using
-s /bin/bash
with that command - that might work.
James
@zunzun:
[
Try also using
-s /bin/bash
with that command - that might work.
James
You da man. As soon as I saw your reply, I realized "chsh" to /bin/bash. All is well. Thanks!