Omnimaga

General Discussion => Technology and Development => Other => Topic started by: Juju on May 11, 2012, 02:02:18 am

Title: cmd.exe on crack
Post by: Juju on May 11, 2012, 02:02:18 am
Tired of your old Windows command line? Replace it with a Windows port of bash!

I installed Cygwin (http://www.cygwin.com), an excellent UNIX layer for Windows, then I was bored and wrote a .bashrc that mimics the look and feel of Windows' cmd.exe, including the prompt, the Windows version banner, some aliases and the command not found handler and modified the Start menu Command Prompt shortcut so it starts bash instead of cmd.exe. Now you can't even tell cmd.exe from bash! Feel free to give me some suggestions ^_^ (Only works in Cygwin as it uses Cygwin utilities for the prompt.)

Download (http://files.julosoft.net/cygwin.bashrc)
Title: Re: cmd.exe on crack
Post by: DJ Omnimaga on May 11, 2012, 02:37:09 am
THat's cool. :D

Also I'm glad they made Cygwin easier to get to work. The first time I ever tried it 5 or 6 years ago, it seemed like they made their readme/doc as hard as possible to understand for non-expert/tech-savy people. <_<
Title: Re: cmd.exe on crack
Post by: hellninjas on May 11, 2012, 10:05:25 am
+1'd :D
Title: Re: cmd.exe on crack
Post by: imo_inx on May 11, 2012, 11:03:17 am
I remember using it inside *shudder* Ubuntu 11.10. It was... complicated :D
Title: Re: cmd.exe on crack
Post by: Jim Bauwens on May 11, 2012, 11:05:47 am
Why would you every use cygwin inside of Linux? Linux already has an unix environment, so there is not reason at all to use it..
Title: Re: cmd.exe on crack
Post by: flyingfisch on May 11, 2012, 11:49:00 am
Tired of your old Windows command line? Replace it with a Windows port of bash!

I installed Cygwin (http://www.cygwin.com), an excellent UNIX layer for Windows, then I was bored and wrote a .bashrc that mimics the look and feel of Windows' cmd.exe, including the prompt, the Windows version banner, some aliases and the command not found handler and modified the Start menu Command Prompt shortcut so it starts bash instead of cmd.exe. Now you can't even tell cmd.exe from bash! Feel free to give me some suggestions ^_^ (Only works in Cygwin as it uses Cygwin utilities for the prompt.)

Download (http://files.julosoft.net/cygwin.bashrc)

"Why?", I say. If you are craving linux that much, GET IT! IT'S FREE, PEOPLE! No reason to emulate it in windows if you don't have to.


:D

LOL anyway.

I get the joke.

:D
Title: Re: cmd.exe on crack
Post by: Levak on May 11, 2012, 12:36:44 pm
I use msys, its the same idea =)
Title: Re: cmd.exe on crack
Post by: Juju on May 11, 2012, 12:39:25 pm
Well, Cygwin is useful in case you're in Windows and you can't/are too lazy to get on Linux, such as at work and stuff like that.
Title: Re: cmd.exe on crack
Post by: willrandship on May 11, 2012, 04:02:09 pm
@jimbauwen cygwin in linux is useful for having programs prepacked in EXACTLY the environment they need to run, and for sandbox-ish isolation (ie chroot minus lots of mess). Also, if you're developing for cygwin in windows it's useful for testing.
Title: Re: cmd.exe on crack
Post by: Jim Bauwens on May 12, 2012, 04:38:53 am
Oh, did not know that, thanks for the information :)
Title: Re: cmd.exe on crack
Post by: Juju on May 12, 2012, 12:44:00 pm
I didn't even knew there was a Cygwin for Linux.
Title: Re: cmd.exe on crack
Post by: imo_inx on May 13, 2012, 09:40:45 am
I was originally just looking for different Terminal variations. :P