32

I'm sure this has been asked before, but I haven't found it after an hour or so of searching...

I've been using Unix and Mac OS for a while, but I'm a Windows user at heart. This #1 things that I've been loving about these *nix operating systems is the terminal and shells. I know that you can use Console to make the actual console better, but I just kind of hate the windows shell. I recently moved from bash to zsh on my Mac and I've never been faster. I can zoom around, have all sorts of colors, aliases, a cool prompt, etc. that make terminal usage just plain awesome.

Is there anything like this for Windows? How can I make my shell experience less painful? Basically, I want oh-my-zsh for Windows.

3
  • 4
    You can get a number of ported tools that you can just stick in a folder and add to your path: gnuwin32.sourceforge.net (coreutils has all the basics - grep, awk, etc). As far as colors and all that go, you can do some with an alternate console. I typically like to use TCCLE (jpsoft.com/tccle-cmd-replacement.html) with Console2 (sourceforge.net/projects/console) and a large set of those gnu utils ports. Gives me a pretty good *nix-like feel when I have to use windows.
    – MaQleod
    May 8, 2012 at 23:39
  • cygwin, for its modularity, has always been my favorite
    – mveroone
    Sep 9, 2013 at 8:40
  • This is not exactly what you're asking for, but it needs to be mentioned: andlinux
    – rinfinity
    Nov 13, 2015 at 6:05

14 Answers 14

26

Windows Powershell has been Microsoft's shell of choice since the release of Windows server 2008 & Vista. Ports are available for XP as well. V2 is the current standard and v3 is in development. Most major mgmt tools are either currently running Powershell under the covers or have a PoSH interface.

If you've not attempted to use PoSH for some bulk management task, you owe yourself the treat. Working with objects instead of text representations of objects is really powerful. If you run AD, start doing your AD user mgmt with PoSh.

4
  • another vote for windows powershell. Even, it's slow compared to linux bash at the moment :) (some commands only) May 9, 2012 at 14:21
  • 1
    v3 is out at the time of this comment. PowerShell is not only gaining popularity as a shell, but as a scripting language. It can do everything VBScript can do - and much more. MS is making a concerted effort, and succeeding, in making PowerShell able to manage all the MS products from the command line.
    – Keltari
    May 2, 2013 at 4:41
  • 1
    the module github.com/lzybkr/PSReadLine is a great addition which would make the user feel some of the oh-my-zsh experience has been imported..
    – Jonno
    Mar 17, 2014 at 3:59
  • Another great add-on is the Windows Terminal. It has much better support for classic unix-y terminal emulators
    – uSlackr
    Jul 29, 2020 at 12:33
23

You can try cygwin and its terminal variant mintty using the bash shell. Cygwin basically consists of some libraries with linux syscalls mapped to the windows kernel. So you can actually run linux programms inside it (not everything, but a lot of stuff; if you know how to compile software yourself, even more).

zsh is available as a package in cygwin, too.

Because windows uses the same name for some programs the behavior of them might not be expected, (eg find or sort) you have to play around with PATH to fix some errors.

3
  • 1
    there is also zsh for windows, but the project seems to be abandoned.
    – Baarn
    May 8, 2012 at 21:31
  • There have been several *nix shell ports to Windows. There was/is a SU member who wrote her own cshell port and sells it off her website.
    – Keltari
    May 2, 2013 at 6:36
  • It has its problems but after all these years Cygwin is the closest UNIX emulator that's still actively developed, not even WSL comes close. Apr 26, 2022 at 3:59
13

Download Git for windows. It comes with a shell called "Git Bash" and it also includes a lot of other command line tools.

5

Absolutely loving ConEmu! It's one of the sexiest around with the ability to have transparent windows, multi-tab and many other options. It also has many shells included with it such as Bash. You will be very happy. https://conemu.github.io/

1
4

I've had several co-workers recommend GOW (Gnu on Windows), https://github.com/bmatzelle/gow as a much better solution than Cygwin. YMMV.

2

You can try out oh my cygwin.

2

Want to see a bunch of alternatives? http://alternativeto.net/software/cygwin/ and many years ago, had used 4Dos - http://alternativeto.net/software/4dos/

2

You might like Hamilton C shell, which recreates the Unix C shell from scratch on Windows, but with a lot of improvements. There's a free demo so you can try before you buy. Full disclosure: I'm the author.

0

You can use cygwin or uwin. Also you can try FireCMD shell which installs UWIN and also provides a GUI environment for other shells like Cygwin, cmd.exe, Windows PowerShell etc.

0

Yes you can :) With the below steps and Windows PowerShell.

Here your are the steps to make your experience less painful:

  1. Download ansicon
  2. Extract the zipped file to you C:\ directory
  3. Open Windows PowerShell and navigate to C:\ansicon\x64 if your machine is 64 bit based architecture, or C:\ansicon\x86 if your machine is 32 bit based architecture.
  4. Use this command ansicon -i

Now first part accomplished, wish is adding some colors to the console output from various commands.

Second part is to change the color setting of Windows PowerShell in order to feel comfortable to you:

  1. Open Windows PowerShell, by typing powershell in start menu.
  2. Right click on the windows header and choose Properties.
  3. Choose Colors tab.
  4. Apply one of the following color schema:

color schema 1
color schema 2

I hope this helped and that is what you are looking for.

0

Python is clear and away the easiest and most powerful way to execute all of the Unix "Pipe" and other shell commands. Heck, Python is the best way on any 'nix system to execute commands.

0

WSL allows you to use Linux command line tools on Windows.

WSL2 which is currently in preview is even better -- it provides a complete Linux environment on Windows.

0

Tabby is quite promising. It's just a terminal but when combining with WSL you have everything needed as a shell for Linux

1
  • As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.
    – Community Bot
    Apr 26, 2022 at 3:47
-1

JTerm unix desktop can run on Windows since it is 100% Java. It can be used with the most basic Linux / Unix commands

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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