Normally I use eclipse for as the development IDE for my web projects. But sometimes I also enjoy using just VI (or Vim) and consoles for coding. The biggest difference from using a GUI IDE is that I would do a lot of typing and not much file looking up from a GUI directory tree. This is especially helpful If I know my files and I can find it by simply typing some commands on the console screen, versus go to the file navigation tree (usually in a small font) in a IDE, scroll up and down and try to locate a file.
Since I use winxp, Cygwin becomes the tool to get some Unix like consoles and commands.
With the base installation I get a simple command prompt. It looks just like a windows cmd prompt so it is a functional tool but doesn’t satisfy my Unix style crave. Luckily I have a couple of other options.
It is an X window system on a windows machine. Basically I can run an X server in windows OS and run other X tools and toys such as xterm and xclock. xterm is the main thing I was looking for since it comes with all the bells and whistles and I can customize the fonts and colors to the way I like.
The installation is pretty simple. Using the Cygwin setup program and simply choose the X11 package and you should be good to go
But I didn’t run into the “file permission” problem until I actually start heavily using it.Â The problem starts with the new files I created in xterm. My web apps (in php) could not read them because “the permission was denied”. Using chmod command seemed to fixed the problem. But soon I has CVS issue for some reason all the CVS folders becomes invisible to windows and Tortoise the CVS client started to complain.
After researching on the web and not being able to find anything that can get me out of this easily so I decided to give it up. Can’t afford losing my time since there are other alternatives.
Falling back to Eclipse is not painful. It is still a good IDE. However,Â Cygwin has another nice bach console tool called rxvt.exe and the good thing about it is not needing a X server.
My rxvt.exe batch file (rcvt.bat):
c:\cygwin\bin\rxvt.exe -sl 500 -fn ‘Courier New-16′ -sr -title “My bash” -e c:\cygwin\bin\bash.exe –login -i
This will give me a nice bash console with a nice font and so far I am pretty happy with it. I guess it needs a little time to find out if it also gives me file permission problems.
If you had the similar experience and know how to fix this, please let me know.