Added explicit no-color to ripgrep in scripts

This commit is contained in:
Wryn Wagner 2021-02-23 09:21:08 -07:00
parent 45e85e0f03
commit b48b888ef5

View File

@ -43,8 +43,8 @@ export RIPGREP_CONFIG_PATH="$HOME/.config/ripgrep/config";
alias erg='EDIT_RIP_GREP_FILE_MATCHES'; alias erg='EDIT_RIP_GREP_FILE_MATCHES';
EDIT_RIP_GREP_FILE_MATCHES() { EDIT_RIP_GREP_FILE_MATCHES() {
[ $EDITOR = "vim" ] \ [ $EDITOR = "vim" ] \
&& $EDITOR -p $(rg -l $1) \ && $EDITOR -p $(rg --color=never -l $1 ) \
|| $EDITOR $(rg -l $1) ; || $EDITOR $(rg --color=never -l $1) ;
} }