From a626c4f78b56c706dc1bb80ad49cfcbae7169950 Mon Sep 17 00:00:00 2001 From: Ryan Kes Date: Mon, 24 Aug 2020 14:14:01 +0200 Subject: [PATCH] colorize diff and make sure fzf uses ripgrep --- zsh/.config/zsh/.zshrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index 26c4cba..ce2c990 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -66,4 +66,13 @@ alias g="git" alias mv="mv -i" alias rm="rm -i" +# Colorize diff +alias diff="diff --color" + +# Make fzf use ripgrep if available +if type rg &> /dev/null; then + export FZF_DEFAULT_COMMAND='rg --files' + export FZF_DEFAULT_OPTS='-m --height 50% --border' +fi + neofetch