Best way to use a shell with Cygwin in Windows 7

65,733

Solution 1

MinTTY - here.

It makes Cygwin entirely usable on Windows. I would be lost without it. Based on the original PuTTY code, but integrates straight into Cygwin (and in fact, is bundled with Cygwin).

Start it with,

C:\cygwin\bin\mintty.exe -

Or where-ever you installed it. The '-' is key.

There are a few other useful additions for Cygwin as well, one being apt-cyg. It's not perfect, but it's better than running setup.exe every time you remember you're missing a package.

Even with Cygwin/X, I still use MinTTY as my primary terminal (I hate the scroll bars on xterm).

Solution 2

Reviving an old thread; however, I stumbled across this while doing my own search. So rather than make a new thread - Here's what I found:

http://babun.github.io/

The core of Babun consists of a pre-configured Cygwin. Cygwin is a great tool, but there’s a lot of quirks and tricks that makes you lose a lot of time to make it actually 'usable'. Not only does babun solve most of these problems, but also contains a lot of vital packages, so that you can be productive from the very first minute.

It installs quickly and sets up the environment for you, which is great, and installs pact (a package manager similar to yum / apt-get)

Uses mintty as the console.

Overall, I'd say it's a great project and the more people that use it, the better it will become.

Solution 3

Install Cygwin/X and use xterm. (And then you'll probably either want their version of gvim or the Windows native one.)

Solution 4

Alternatively, you can try AndLinux and work with a real terminal.

Solution 5

I added C:\cygwin\bin (the Cygwin installation path) to the System environment variable: Path. It solves two problems:

  1. You need not cd to a particular folder (go to a folder, press <alt+d>, type cmd, and press <enter>)
  2. Use Cygwin Terminal as the default cmd in Windows
Share:
65,733

Related videos on Youtube

Arif Hossain
Author by

Arif Hossain

Software developer based near Cape Town, South Africa

Updated on September 18, 2022

Comments

  • Arif Hossain
    Arif Hossain over 1 year

    I installed Cygwin, to be disappointed that bash by default runs within "cmd.exe". I googled around and found Console2. It's not a particularly well-designed application, as doing adjustments is slightly painful, although most of the time it works well.

    I am still looking for a better way to survive in a Windows environment as even Console 2 occasionally crashes e.g. when trying to resize my terminal when editing in vim and there are plenty of other annoyances that I'm really not satisfied with.

    Any ideas? I tried using Cygwin via PuTTY and that was an equally bad user experience.

  • tcoolspy
    tcoolspy almost 13 years
    The OP is going to have to weather this somehow and there ARE things to be suggested to improve the situation even if you don't personally think there are "great" ones.
  • Arif Hossain
    Arif Hossain almost 13 years
    That actually looks interesting. Will look into it.
  • Arif Hossain
    Arif Hossain almost 13 years
    Oh, how do I make it start in my home directory? I start mintty and it starts in /usr/bin and it doesn't even have a PATH variable. Thanks :)
  • ak2
    ak2 almost 13 years
    Invoke it with a dash (i.e. '-') as its argument. If you've installed it through Cygwin's setup.exe, there should be a mintty start menu entry in the Cygwin folder that already does that.
  • EightBitTony
    EightBitTony almost 13 years
    Yeh I was just adding the - to the answer.
  • Arif Hossain
    Arif Hossain almost 13 years
    Thanks guys. I am using MinTTY now and I'm very happy with it.
  • dkb
    dkb about 9 years
    I found one good software to customize console in windows "conEmu"with installer and portlable version(sourceforge.net/projects/conemu). It has all advanced features and its really good to use. check this link to integrate it with windows context menu. stackoverflow.com/questions/21852965/…
  • terdon
    terdon over 8 years
    Could you expand this a little please? Perhaps explain what features make this useful? As it stands, this is more of a comment than an answer.
  • graywolf
    graywolf about 8 years
    32bit only though
  • Sean Mickey
    Sean Mickey about 6 years
    Limited to Windows versions: 2000, XP, 2003, Vista, or 7 and 32-bit only.
  • Hashim Aziz
    Hashim Aziz over 4 years
    Discontinued just two years on, while Cygwin goes on strong. Just goes to show the importance of depending only on software that's been tried and attested to for years.