irongit

a bin full of cool programs

'hdir command '

huncholanehuncholaneauthored
parent 88eb107commit 7874752f9530822553e4abbc908ed17e18917504Browse files

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"