forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Getting different prompt in Cygwin

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
JustChris



Joined: 03 Nov 2005
Posts: 21

PostPosted: Thu Nov 22, 2007 3:26 pm    Post subject: Getting different prompt in Cygwin Reply with quote

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
View user's profile Send private message
DoctorRockit



Joined: 10 Dec 2006
Posts: 5

PostPosted: Thu Nov 22, 2007 6:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
JustChris



Joined: 03 Nov 2005
Posts: 21

PostPosted: Sat Nov 24, 2007 12:35 am    Post subject: Reply with quote

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
View user's profile Send private message
moonlight



Joined: 26 Oct 2005
Posts: 567

PostPosted: Sat Nov 24, 2007 3:54 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group