irongit

a bin full of cool programs

6 lines182 B
1#!/bin/bash
2cmd="$@"
3dir="$(pwd)"
4
5# Execute the command and highlight occurrences of the current directory
6$cmd 2>&1 | sed "s|$(pwd)|$(printf '\e[1;34m')$(pwd)$(printf '\033[0m')|g"