a bin full of cool programs
'hdir command '
1 file changed, +6 -0
+6-0bin/hdir
| @@ -0,0 +1,6 @@ | ||
| 1 | +#!/bin/bash | |
| 2 | +cmd="$@" | |
| 3 | +dir="$(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" |