grep环境变量常用配置 vim ~/.bashrc GREP_OPTIONS="-irns --exclude-dir=output --exclude=tags --exclude=*.files" 然后: source ~/.bashrc