Part 2: the ‘hint’ command
- An alias to grep the hints file
- In my .bashrc ...
function hint() {
test -n "$*" && \
sed -n "/$*/Is/^\([^:]*:\) *\(.*\)$/\1\n\2\n/p" \
$HOME/.common-configs/hints
}
function hint() {
test -n "$*" && \
sed -n "/$*/Is/^\([^:]*:\) *\(.*\)$/\1\n\2\n/p" \
$HOME/.common-configs/hints
}