| View previous topic :: View next topic |
| Author |
Message |
JustChris
Joined: 03 Nov 2005 Posts: 21
|
Posted: Thu Nov 22, 2007 3:26 pm Post subject: Getting different prompt in Cygwin |
|
|
I recently installed some new file packages for Cygwin and now the prompt says "bash-3.2$" instead of "username@machine $". And the default directory seems to have moved to /usr/bin. For now I can no longer use some of the Unix commands nor do any development with it.
I'm only certain that a re-install is unnecessary to correct the problem. Maybe it's something in my user folder's .bash_profile that needs to be changed? |
|
| Back to top |
|
 |
DoctorRockit
Joined: 10 Dec 2006 Posts: 5
|
Posted: Thu Nov 22, 2007 6:18 pm Post subject: |
|
|
While you can easily fix the shell prompt by setting the PS1 environment variable to something like "\u@\h \w$ " your description sounds as if something else is seriously wrong.
Try rebuilding /etc/passwd by executing: mkpasswd -l > /etc/passwd
and restart the cygwin shell afterwards.
HTH |
|
| Back to top |
|
 |
JustChris
Joined: 03 Nov 2005 Posts: 21
|
Posted: Sat Nov 24, 2007 12:35 am Post subject: |
|
|
| Editing the .bashrc changes the prompt, but it doesn't restore the original functionality. I still can't use some commands such as make or ls (though cd and pwd work). Thus, Cygwin cannot find the command 'mkpasswd' when I enter it in the command line. |
|
| Back to top |
|
 |
moonlight
Joined: 26 Oct 2005 Posts: 567
|
Posted: Sat Nov 24, 2007 3:54 am Post subject: |
|
|
Check that the .bashrc is in unix text format (no character 0x0D before 0x0A).
I had the file long ago in windows/dos format, and it was working, until some day suddenly after a cygwin update, it stopped to do it until i converted it to unix format. |
|
| Back to top |
|
 |
|