21 Feb '12, 2pm

Bracket Expansion

February 21, 2012 Tagged: shell zsh bash Comments (View) Bracket Expansion Let’s say you want to update capybara and capybara-webkit . You’d normally type this: gem update capybara capybara-webkit But you’re busy, you don’t have time to type “capybara” twice. Let’s see what tab completion has for us: gem update capybara{,-webkit} The bracket expression expands to the same thing as above because the brackets expand to "capybara" + "" and "capybara" + "-webkit" . If you’re in ZSH, you can press the TAB key (gem update capybara{,-webkit}<TAB> ) and it will expand the expression for you inline. Bash users, this will still work for you, even without the neat TAB trick.

Full article: http://robots.thoughtbot.com/post/18009649806/bracket-exp...

Tweets

Match Play: Updated bracket:

golf.com 22 Feb '12, 3pm

Club types ClubTest Drivers Irons Hybrids and Fairway Woods Wedges Putters Brands Adams Bridgestone Callaway Cleveland Cob...

Match Play bracket preview: Inside the Hogan br...

pgatour.com 20 Feb '12, 3pm

Of the 16 players in the bracket, two are former Match Play winners (David Toms, Steve Stricker), one went to the finals l...

Match Play bracket preview: Inside the Jones br...

pgatour.com 20 Feb '12, 3pm

As befits a bracket that includes the world's top-ranked player and unprecedented winner of money titles on the PGA TOUR a...

Nanosolar secures US$20m for expansion

renewableenergyfocus.com 22 Feb '12, 3pm

Latest on the solar PV innovators: Roundup Joyce Laird catches up with some companies we featured exactly a year ago to fi...