Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm having an issue with the Command Line Interface. I'm running Precise 12.04 armhf on a BeagleBone and all the functionality works fine that I need. I have a 'cosmetic problem' when logged in as the non-default user. The command line is simply a "$" no matter what directory I'm on. When I'm logged in as the default user it reads "user@hostname/directory". Also autocomplete (tab completion) seems to be disabled when I'm using the other user. I can use 'su' and switch to and from the default username and get a different looking prompt ("$" and "user@hostname/directory"). Pretty sure it's an easy fix. Help!

share|improve this question
    
could you run the command echo $PS1 please? That will show what the prompt should be –  jackweirdy Jun 29 '12 at 22:11
    
It comes back blank if that's what you mean. –  LapTux Jun 29 '12 at 22:13
1  
hmmmmm very strange. try running PS1="${debian_chroot:+($debian_chroot)}\u@\h:\w\$", does that fix the problem? (this will only be temporary) –  jackweirdy Jun 29 '12 at 22:15
    
it changes the prompt to ":+()}\u\@\h:\w$" –  LapTux Jun 29 '12 at 22:20
    
u=username h=hostname w=? I just put in a 'w' –  LapTux Jun 29 '12 at 22:22
show 6 more comments

1 Answer 1

Answer found. I checked the /etc/passwd file and found that the shell for the user in question was /bin/sh not /bin/bash. Editing the shell fixed the issue.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.