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:
parent
6e33f9f006
commit
d1e993bab4
@ -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 "\
|
||||||
|
@ -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)"
|
||||||
|
Loading…
Reference in New Issue
Block a user