1
0
mirror of https://github.com/alrayyes/dotfiles/ synced 2023-11-14 15:56:30 +00:00

add diff alias to colorize output

This commit is contained in:
Ryan Kes 2020-08-24 21:07:02 +02:00
parent 6e33f9f006
commit d1e993bab4
2 changed files with 6 additions and 0 deletions

View File

@ -122,6 +122,9 @@ abbr --add g "git"
abbr --add mv "mv -i" abbr --add mv "mv -i"
abbr --add rm "rm -i" abbr --add rm "rm -i"
# Colorize diff
abbr --add diff "diff --color"
# Load lfcd wiith proper icons # Load lfcd wiith proper icons
function lf function lf
set -lx LF_ICONS "\ set -lx LF_ICONS "\

View File

@ -83,6 +83,9 @@ alias g="git"
alias mv="mv -i" alias mv="mv -i"
alias rm="rm -i" alias rm="rm -i"
# Colorize diff
alias diff="diff --color"
# Use lf to switch directories and bind it to ctrl-o # Use lf to switch directories and bind it to ctrl-o
lfcd() { lfcd() {
tmp="$(mktemp)" tmp="$(mktemp)"