Skip to content

{ Monthly Archives } May 2008

Remembrance of Things Past

In a previous post I discussed bash emacs mode—a convenient way to get around the bash command line quicker. Taking the time to learn these commands definitely yields a welcome boost to productivity. (And if you cannot remember them at first there is a bash cheat sheet.)

I recently learned a few things about bash history […]

Cheat Sheets

Earlier I posted about a ruby gem for a git cheat sheet. What I didn’t realize that it was so much more and way cool to boot. Basically, the ruby gem, cheat, is a command line driven wiki for cheat sheets. The inaugural blog post is here, and the online version of the wiki is […]

Metablogging: Syntax Coloring

As I wrote in a previous post:

Syntax coloring is a feature of some text editors that displays different parts of the text in different colors depending upon the logical category of the text. This makes it easier to write structured texts whether these be code or markup. … Syntax coloring makes the logical […]

Open in Git Gui

OpenInGitGui is an AppleScript droplet that allows you to open Git-Gui from the Finder. Install it in /Applications/Scripts (create the Scripts directory if it does not already exist), and drag the icon to the toolbar of your Finder. Select a folder containing your git repository and click the Git icon.

Sounds easy. It is. Though I […]

GitHub and TextMate

Are you a TextMate user and have a GitHub account? Then Dr Nic’s GitHub bundle may be for you. It requires the git ruby gem, so you need to install it first:

sudo gem install git

To install GitHub.bundle:

cd ~/”Library/Application Support/TextMate/Bundles/” git clone git://github.com/drnic/github-tmbundle.git “GitHub.tmbundle”

If TextMate is running, execute the following line:

osascript -e ‘tell app “TextMate” to reload […]

Open Terminal in New Tab

Open Terminal is a useful TextMate command—it opens a new instance of Terminal.app in the directory of the current file. Terminal.app has improved under Leopard; it now supports tabs. It would be great if the Open Terminal command could open the directory of the current file in a tab of an already opened instance of […]

Git Scatter Graph for TextMate

Here is a command for TextMate’s Git bundle, that’s, well, kind of useless but makes me happy. The code comes from Chris on the GitHub IRC:

require ‘time’ lines = `git log –pretty=format:%ai` times = lines.map { |l| Time.parse l }

dots = [] 0.upto(7) { |wday| 0.upto(23) { |hour| dots « [hour, wday, times.find_all { […]

Meme

$ history | awk ‘{print $2}’ | sort | uniq -c | sort -rn | head 123 cd 78 ls 27 git 26 svn 14 man 13 mate 12 mkdir 10 sudo 6 ssh 5 most

FireStats icon Powered by FireStats