Fixing Cygwin Command Line


 
Thread Tools Search this Thread
Special Forums Windows & DOS: Issues & Discussions Fixing Cygwin Command Line
# 1  
Old 03-28-2010
Java Fixing Cygwin Command Line

How do I change my command line to the standard appearance? (i.e.: The pwd is listed in green above the actual command line).

Mine looks like Image

and I want it to look like this Image

Help?? Smilie
# 2  
Old 03-28-2010
PS1 PS2 and PS3 environment determine your prompt.

Play around with PS1 until you get what you would like. i.e.,

Code:
echo $PS1

to see how things are set up, then
Code:
export PS1='$PWD >'

as an example -
or whatever you want.
# 3  
Old 03-29-2010
MySQL Fixed!

Thanks! Fixed it! Just commented out the PS1 line.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Command awk under CYGWIN

One my friend wrote one script on his machine linux, when I try to use it under cygwin I recive one error about the command awk. Is there someone can suggest me the way to fix the error? The script is wrote using gawk and I have no idea what kind of comand is used by cygwin. This is the script:... (8 Replies)
Discussion started by: Tapiocapioca
8 Replies

2. Shell Programming and Scripting

script under cygwin suddenly says command not found

Running bash in cygwin under 2003 Server. I run about 6 shell windows. Every now and then when I check the machine, all of the scripts are scrolling and returning /usr/bin/whatever: command not found. I checked the event log for a windows event that would cause it, but there was nothing. I... (9 Replies)
Discussion started by: gman804s
9 Replies

3. Shell Programming and Scripting

bash command in makefile (cygwin)

Hello, In my make file (make 3.81), I use a combination of shell commands to automatically create the name of my build directory. OS := $(shell uname -s) ARCH := $(shell uname -m) KERN := $(shell uname -r | cut -d. -f 1,2) BDIR := $(OS)_$(KERN).$(ARCH)When I boot into different OSs, I... (7 Replies)
Discussion started by: LMHmedchem
7 Replies

4. UNIX for Dummies Questions & Answers

How to execute a command in Cygwin?

Hi, I have installed CYGWIN software in my system, can anyone suggest me how to run cat command in this software ? when i attempt to execute this command- $ cat /cygdrive/c/Program\Files/hello.txt. Result: No such file or directory. Please let me know how to execute. Regards, Kiran. (1 Reply)
Discussion started by: Kiran S
1 Replies

5. UNIX for Dummies Questions & Answers

need help in fixing the hangup issue due to nohup command

Hi All, I am very new to unix and to this forum.Suggest me a solution in fixing the below issue. Actually ia m executing java program through script. The command is like java pgm & The above cmd runs the java program continuous as a background thread. This script is executed from a... (1 Reply)
Discussion started by: sahan
1 Replies

6. Windows & DOS: Issues & Discussions

Output of ls command on Cygwin

what does the '+' sign stand for on the output of ls command on cygwin? -rw-------+ 1 milhan None 146783 Jun 19 12:10 schedule.pdf -rw-------+ 1 milhan None 320 Aug 15 17:14 current.txt -rw------- 1 milhan None 24576 Dec 28 2008 fdfd.txt (2 Replies)
Discussion started by: milhan
2 Replies

7. Shell Programming and Scripting

cygwin and remote find command problem

Sir, I want to get all the files in directory on a remote server which are dated newer than a specified file. I have ssh running and the command I am using is : for file_name in `ssh userid@IP find "/cygdrive/d/oracle/oradata/db/archive" -newer "1_44.DBF" -name '*.DBF' -type f -print | xargs -r... (2 Replies)
Discussion started by: nakod1
2 Replies

8. UNIX for Dummies Questions & Answers

How to use route command on SuSE & Cygwin

If I'm at a wireless cafe running SuSE and I want to read my mail but the wireless cafe blocks port 25 for smtp but I have a VPN connection to my home machine, how do I use the "route" command. If I'm at home on my windows machine and have a VPN connection to another network, can I use the... (3 Replies)
Discussion started by: siegfried
3 Replies

9. UNIX for Dummies Questions & Answers

Sed command in cygwin

I am new to unix and lerning tru cygwin (unix simulation on windows) i am trying to lern sed command and want to interchange first and second no in a string. What i mean is i want gauri 1234 556 to gauri 556 1234 i am getting the following error $ echo gauri 1234 556 | sed s/\(*\)... (2 Replies)
Discussion started by: gauri_agr
2 Replies

10. UNIX for Advanced & Expert Users

Fixing line length in a file

I have a file containing many lines all with varying lengths. I need each line in the file to be 100 characters in width but I can not find a way of doing this. I want to append to each line spaces to bring the width of the line to 100 but I need a generic way to work out how many spaces I need. ... (2 Replies)
Discussion started by: dbessell
2 Replies
Login or Register to Ask a Question