selfjungle Just another WordPress weblog

6Dec/110

bash case-insensitive filename tab-competion

Edit /etc/inputrc:

add this line:

set completion-ignore-case on
Tagged as: No Comments
5Dec/110

shortcuts to find and grep

Writing these 2 line way too much a day.

Edit ~.bashrc:

function gr {
grep -Hrni $1 *
}

function f {
find . -iname *$1* | grep -i $1
}
Tagged as: No Comments