vim ~/.bashrc
GREP_OPTIONS="-irns --exclude-dir=output --exclude=tags --exclude=*.files"
然后:
source ~/.bashrc