Visualizing Git diffs in Meld.

Here’s a quick way of configuring your (Linux-based) Git installation to use the excellent Meld program by default for displaying/editing the outputs of the git diff and git merge commands (e.g. git diff «filename»). Install Meld …if you haven’t already (note that we assume Git to be present): # on Debian-based distros (ymmv) sudo apt-get install meld Viewing/editing file diffs via Meld Configure Git to use Meld as the default

Continue reading

URI parsing using Bash built-in features

A bit of background A while ago I posted an article describing how one could parse complete URIs in Bash using the sed program. Since then, I have realized that there is a better way to do it, a much better way: via Bash built-in pattern matching!  Here are some benefits of this improvement: It no longer executes external programs (i.e. sed) for pattern matching. This translates to higher speed

Continue reading