G R A N T   S T A V E L Y G R A N T   S T A V E L Y G R A N T   S T A V E L Y G R A N T   S T A V E L Y

If you already have a working bash shell and are just looking to extend bash’s tab completion capabilities, do not pass go, proceed directly to Ian MacDonald’s programable bash completion project. Then read the rest of his advice, it is excellent.

To skip bash completely and try an entirely new shell, give fish or less crazy, zsh a shot.

If you are looking for bash in Windows and Cygwin help, continue reading.

cmd.exe is really terrible.

There are hackish Unix workarounds but none that really come through. Cygwin’s default install leaves us with the Cygwin Bash Shell, which is just bash running in (drumroll please) cmd.exe. It also comes with rxvt.exe which is fast and actually a terminal and instead of just a process running within cmd.exe, but it isn’t easily configurable and has a nasty looking scrollbar.

Mark Edgar’s PuTTYcyg to the rescue!

It’s easy.

Install Cygwin. This should give you a working unix environment, home directory, shell, and Cygwin bash shell. Launch the included Cygwin Bash Shell shortcut to remind yourself how lame it is. It uses cmd.exe! Gross! It should dump you in your home directory.

Download the latest release of Mark Edgar’s patched PuTTY executables. I like to keep all that stuff in ~/bin, which is in c:\home\bin on my laptop. You probably want to add c:\home\bin to your PATH environment variables in windows. Yours might be different. If you aren’t sure, type “set | grep -i home” in the default Cygwin shell to find out.

Launch the putty.exe you just extracted. It looks like the normal Putty GUI but there is a new connection type radio button labeled Cygterm. Select that. Label it whatever you like, I call mine ‘local’ and hit save. Then click the Open button and you are off!

Cygterm

You should probably go back and tweak your shell settings now that you have a working shell in windows. From the top-left corner context menu, select “Change Settings…”

I like to enable logging, use a lighter gray background, turn on the visual-bell and blinking cursor, and modify all of the colors assignments. Once you are happy, go back to the top “Session” menu and save your session over your ‘local’ bookmark.

My shell

NB: Not all dos commands work well within PuTTYcyg. Some of the sysinternal tools (pstools for example) that request passwords misbehave and are useless. Keep in mind that the shell is interpreted like a unix shell, so you’ll need to escape backslashes and so on.

Now go back to the cygwin setup and grab bash and bash completion. You will need to add the bash completion files to your startup by sourcing it in a bash dotfile like .bash_profile or .bashrc

if [ "$PS1" ] && [ $bmajor -eq 2 ] && [ $bminor '>' 04 ] \ && [ -f /etc/bash_completion ]; then # interactive shell # Source completion code . /etc/bash_completion fi

To jump right to your shell and have a shortcut in your quicklaunch or on your desktop, use Putty’s -launch flag.

I’m always looking for something better, let me know if it’s out there!



Textile Help

@philip_daigle congratulations Philip!


Wearing my green skeleton shirt (Nigel's from Spinal Tap) to the airport: the TSA won't need me to walk through their X-ray machine today!


@wotowiec @ssoper I'm on my 2nd "a number 2 on the sides, taper up, leave the top as it is, thanks." I think I'm acting out. It's a phase.


@vurtyou: You're hair is very Flock Of Seagulls today. @grantstavely: Thanks, I like it too.


@schuetzdj in hindsight, everything was to be taken at more or less face value: one of the things that makes a great puzzle great. =] #DBIR


RT @therealKidKoala: free download available for the next 6 days. The Lost Solid Steel mix. it's sorta like Music to Draw to... enjoy: ...


@christopherkunz nice work! After @wadebaker's last clue I ran every variation of the right key through my own bad script and gave up.


@marcusjcarey thanks, I'm very much enjoying the Bay Area. The return of @dojosec/@dojocon streams is great news, I look forward to 'em.


I should use Entourage's auto-capitalization of the first word after e.g. to break myself of using latinate abbreviations. Instead: rage.


@kathybarnett way to go Kath!


Yes, yes, of course, but what is the zeroth law of the Road Runner and Wile E. Coyote? http://goo.gl/i2Jz


"They're talkin' about, weak induction. It's a motherfucker, don't you know?" —Sun Ra http://j.mp/cn5Gc2 (Link via @rands)


printf "# Or just go listen to a funky 60 minute DJ Food mix made for robots.\nUser-agent: *\nSuggest: http://snd.sc/aOT9a4 " >> robots.txt


@alexhutton I cut out the cover's circles on a full print out of the #DBIR with a razor and tried the grille-cipher approach. #nbioahd


The body language of appearing to be lost or have forgotten something is as effective as mind control. So is its inverse.


RT @electricfork: What keeps me up at night? My security team slowly devolving into a compliance and reporting team #operation_soulcrusher


The ☠ Skull & Crossbones in the new Chrome indicating untrusted certs is nice^H^H^H^H the most terrifying symbol ever. http://goo.gl/fQz1


I'm brewing an American IPA with @vurtyou. I need a fridge to keg this in! http://flic.kr/p/8sCgnr


I'm brewing an American IPA with @vurtyou. I need a fridge to keg this in!

Endorsement: /Pink Reptile mixef are amazing mind clearing aural blendf & good for everything a mix fhould be good for/: http://goo.gl/Y1L1