22

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.

closed as primarily opinion-based by Thomas Dickey, GAD3R, Stephen Harris, G-Man Says 'Reinstate Monica', Anthon Sep 18 '16 at 8:33

Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question.

10 Answers 10

36

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).

  • 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 :) – T.K. Aug 11 '11 at 7:34
  • 2
    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. – ak2 Aug 11 '11 at 8:27
  • 1
    Yeh I was just adding the - to the answer. – EightBitTony Aug 11 '11 at 8:32
  • Thanks guys. I am using MinTTY now and I'm very happy with it. – T.K. Aug 12 '11 at 9:31
9

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.

  • 32bit only though – graywolf Apr 13 '16 at 13:57
  • 1
    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. – Hashim Sep 28 at 22:58
5

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

3

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

  • That actually looks interesting. Will look into it. – T.K. Aug 11 '11 at 7:20
  • Limited to Windows versions: 2000, XP, 2003, Vista, or 7 and 32-bit only. – Sean Mickey Apr 5 '18 at 10:22
2

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
1

I realize this is very old, but since things have changed, ConEmu is the best in my opinion. It lets me run all variety of tabbed shells with massive customization, hot keys, etc. My primary use case is a series of named Cygwin zsh instances.

https://github.com/Maximus5/ConEmu

1

I've been using Poderosa for a long time.

It works beautifully with Cygwin.

It has a dedicated button to launch a Cygwin terminal, while being a capable terminal itself. It's a tabbed terminal, has the ability to send commands to all your tabs (using a plugin), display profiles (text/background color) per session, copy-by-select, etc.

I mainly use it to test awk/sed scripts on Cygwin before running it on the server.

  • 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. – terdon Feb 9 '16 at 9:53
1

To answer the wider question about surviving on a Windows box coming from a Linux world, I'd like to recommend MobaXterm from Mobatek. It's a self-contained Windows application, works on Windows 7 & 8, and includes a plugin for Cygwin. You get the nice wide console that you don't get from the pre-packaged Windows cmd.exe. You can easily create session shells to Linux boxes from your windows machine. It's got X server capabilities so you can launch Linux apps and have them served up locally on the Windows box.

My primary machine at work is (unfortunately) Windows. But, I'm able to quite easily access and work with remote Linux boxes using my favorite GUI interfaces -- all popping up quite nicely in Windows. Quick examples of things I run include gtkterm, gedit, and Eclipse.

I have no affiliation with the company. Just a very satisfied customer who simply loves how easy it is to install and use. Download the standalone version, run the executable, and you'll be going in no time. Seriously. The Home Edition works just as well as the Pro Edition with some session count limitations that I honestly never even ran into before I became a paying customer.

0

Personally I don't think there is a great solution on Windows unfortunately. I've opted to install the gvim windows package and use that for most of my editing (it adds a nice option in your right click menu to open with Vim).

As for CLI, you can keep using bash if you'd like. Other options include Windows PowerShell. I haven't bothered to learn it, but I've heard its pretty good.

The last solution is to run a VM in VirtualBox or VMWare Workstation. May not be ideal, but it lets you get Linux and edit/manipulate files from Windows via SMB Share or Shared Folders.

  • 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. – Caleb Aug 9 '11 at 17:24
0

rxvt is nice.

From my blog (currently down, thanks Google cache!):

My buddy Bill told me there is now a Cygwin command xhere and a setup command chere that will do all the Registry insertions for you. So launch Cygwin in the default crappy shell (with admin privs) and you can type:

chere -i -af -t rxvt -o "-bg black -fg white -sr -sl 1000 -fn \"FixedSys\" -ls" -s bash -e "Bash prompt here"

You can change -af to -cf for current user only if you don't have admin on the machine.

Because he was kind enough to give it to me, I will give you his command which seriously hurts my eyes. :) I also prefer the default size and expand it if needed.

chere -i -af -t rxvt -o "-ls -sr -sl 1000 -bg grey70 -fg black -geometry 120x65+300+15 -fn 10x16 -title Bash" -s bash -e "Bash prompt here"

Not the answer you're looking for? Browse other questions tagged or ask your own question.