Skip to main content

Setting up your command line on Windows

I'd been frustrated and had resigned to give up on using the command line (CLI) on Windows. Alas, the Microsoft product seemed to not have improved since I started using the command line in High School back in the 90's. Clunky and completely lacking super useful tools, like 'which' on Linux/Mac, I'd just abandoned it. I even wrote scripts in Ruby to avoid using the command line in Windows (which is not a bad idea btw). Yet today I found the missing piece. I knew that you could install Cygwin on windows to get a Linux like prompt, but cygwin is a monster of an environment and you essentially have to live inside of it to use it. But I found Gow and all is well.

First things first, the terminal or command application on windows sucks. I highly recommend using Console2, which is a portable application that is way better at giving you a command prompt than anything Windows has by default, and it's free. You can set a start-up directory in it, so you can launch it from somewhere and have it start in your prefered directory. I haven't gone into all the options but it looks great.



Then install Gow. Which adds all the missing command line utilities to Windows. The list of applications is listed on the website and it's massive. The most important? The 'ls' command, because it's the one I miss the most. However, utilities like curl, which, and vim are awesome.

Comments

  1. Also give a try to ConEmu.
    Here is Scott Hanselman's article
    http://www.hanselman.com/blog/ConEmuTheWindowsTerminalConsolePromptWeveBeenWaitingFor.aspx
    and some user reviews
    http://code.google.com/p/conemu-maximus5/wiki/Reviews

    ReplyDelete
  2. ConEmu does look interesting. I'll check it out. I like that there is a far manager that's like midnight commander for linux.

    ReplyDelete

Post a Comment

Popular posts from this blog

Multiple Assignments in Ruby

In this Rails project I'm running I need to set a whole bunch of individual variables to 'disabled' at once depending on the group the current user belongs to. We can use multiple assignment in this case but with a caveat. Multiple assignments are a quick way of setting a lot of variables at once. h, k = 1,2  => [1,2] h => 1 k => 2 but   h, k = 1      => 1 h => 1 k => nil In that case we can do this: h = k = 1   => 1 h => 1 h => 1  Beware this sets them to the same object. So if you change one you change both. h = k = [] h << 1 h => [1] k => [1] While we're at it here is how to reverse two variables: h = 1 k = 2 h,k = k,h h => 2 k => 1

What Medieval Economics can teach us about tariffs.

As a teen, I used to play Dungeons and Dragons (D&D) with my friends. This started an interest in the medieval period that led to me taking a medieval history class in college just to understand the period more. Over the years I've also read great books like " Dungeon, Fire and Sword " about the crusades (I recommend the book) and yet with all that knowledge it wasn't until recently that it occurred to me I had a completely wrong understanding of economics in the Medieval Period. "Viking helmets, sword and footwear" by eltpics is licensed under CC BY-NC 2.0 In my D&D games, players who are adventures battling monsters and creatures would need equipment and on the trips to town, they'd get resupplied with their adventuring necessities. I'd run these moments referencing my imagination of what it must have been and fantasy books I'd read. There be an inn with a raucous bar, a gruffly black-smith, if a city also a weapon and armor sm...

Setting up the Marble Mouse for Ubuntu

I have a Logitech trackball which I love. I bought it when my wrists started hurting after hours of long Photoshop sessions. The switch to the trackball fixed all that. It allows me to hold my hand in the perfect position and it's great for most browsing with one exception: It lacks a middle-click wheel. This presents a bigger problem than it seems, as design seems to be removing the scroll bars at the edges of windows in favor of small slits. So to get around this you can emulate a scroll wheel or use the middle click to activate a scroll motion on various programs. Logitech has a utility that sets this up in Windows but in Ubuntu you have a better (if more hard-work required) option. The Ubuntu option is better because unlike in Windows you can emulate the wheel with the track-ball by holding down a button. This is the option I like to use. In Ubuntu you write a configuration file to set up the trackball to work the way you want it. I have to re-create this...