Random ramblings of a anonymous software engineer. Contains occasional profanity. Personal opinions, not related to employer.

Retina resolution for gitk

On Retina Macbooks (and now I guess Retina iMacs), gitk works in low resolution mode. Considering the aesthetics of gitk this is probably one of the smaller problems, but I found it a tad annoying and decided to scratch something together to make enabling it a bit easier.

curl -s | sudo patch /System/Library/Frameworks/Tk.framework/Versions/Current/Resources/; sudo touch /System/Library/Frameworks/Tk.framework/Versions/Current/Resources/

This one-liner will make it run in Retina resolution. The actual patch is fairly trivial, but for those who want to double check if there is anything malicious it's available here.

The warning "patch unexpectedly ends in middle of line" can be safely ignored.