From d1e993bab40dea2ee56e3726c97935e36d90560a Mon Sep 17 00:00:00 2001 From: Ryan Kes <> Date: Mon, 24 Aug 2020 21:07:02 +0200 Subject: [PATCH] add diff alias to colorize output --- fish/.config/omf/init.fish | 3 +++ zsh/.config/zsh/.zshrc | 3 +++ 2 files changed, 6 insertions(+) diff --git a/fish/.config/omf/init.fish b/fish/.config/omf/init.fish index 4d8549e..71ca8bb 100644 --- a/fish/.config/omf/init.fish +++ b/fish/.config/omf/init.fish @@ -122,6 +122,9 @@ abbr --add g "git" abbr --add mv "mv -i" abbr --add rm "rm -i" +# Colorize diff +abbr --add diff "diff --color" + # Load lfcd wiith proper icons function lf set -lx LF_ICONS "\ diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index c2de660..54b7ffd 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -83,6 +83,9 @@ alias g="git" alias mv="mv -i" alias rm="rm -i" +# Colorize diff +alias diff="diff --color" + # Use lf to switch directories and bind it to ctrl-o lfcd() { tmp="$(mktemp)"