Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a better Windows command-line shell? [closed]

Tags:

shell

windows

cmd

CMD.EXE is posing lots of problems for me. I have Cygwin installed and use bash regularly, and I also have the mingwin bash shell that comes with mSysGit, but sometimes I really do need to run things from the Windows shell.

Is there a replacement for the Windows shell that:

  • has a persistent command-line history, available in my next session after I close a session? (as in bash HISTFILE)
  • remembers what directory I was just in so that I can toggle between two directories? (as in bash cd -)

(Or is there a way to enable these features in CMD.EXE?)

I see some has asked about a better windows shell before, but they were asking about cut and paste which is lower in priority for me at this point. It's not the console that's killing me, it's the command-line interpreter.

like image 767
skiphoppy Avatar asked Apr 06 '09 20:04

skiphoppy


People also ask

How can I make my Windows Command Prompt better?

Right-click on the top bar of Command Prompt and select Properties. In the Properties window, open the Colors tab. At the bottom, drag the Opacity slider to adjust the transparency. Feel free to experiment with the slider to achieve the best look.

What is the most powerful command in cmd?

One of the most powerful tools in the CMD command library is the ASSOC command. Your computer associates certain file extensions with certain programs.

Should I use Windows Terminal or PowerShell?

Windows Terminal Is All You Need PowerShell helps bring the power of the . Net Framework into cmd. And, on top of introducing more commands, it allows you to create your own and even schedule when the app should execute them, giving you greater control and automation.


2 Answers

Microsoft's just released Powershell. (about 2 years ago)

I've already downloaded it; didn't try it much, but seems a nice tool.

like image 136
Seb Avatar answered Oct 08 '22 15:10

Seb


I've always liked 4NT (haven't used it for a while now).

It's an enhanced command interpreter for windows, and it's mostly backwards compatible (meaning you can run normal windows batchfiles). The only reason not to use it is that it doesn't ship with Windows like the default command.exe does.

Compared to the default windows commandline interpreter, it has better flow control mechanisms. All standard windows commandline tools are available, but with extra options and parameters.

Basically it's what CMD.exe should've been.

Update: looks like it's not called 4NT anymore, but TakeCommand: http://jpsoft.com/products.htm

like image 12
Wouter van Nifterick Avatar answered Oct 08 '22 13:10

Wouter van Nifterick