(git) introducting diff-so-fancy

This commit is contained in:
Bartek Stalewski 2025-08-11 16:27:48 +02:00
parent ed9ef50e66
commit 2cdab434ac
No known key found for this signature in database
3 changed files with 10 additions and 3 deletions

View file

@ -10,7 +10,7 @@
gpgsign = true
[core]
autocrlf = false
pager = less -FRX
pager = diff-so-fancy | less --tabs=2 -RF
[gpg]
format = ssh
[http]
@ -26,3 +26,9 @@
[include]
path = ~/.local/config/git
[interactive]
diffFilter = diff-so-fancy --patch
[diff-so-fancy]
markEmptyLines = true
changeHunkIndicators = true
rulerWidth = 40

View file

@ -7,7 +7,7 @@ if [[ -f "${HOME}/.note" ]]; then
echo
fi
tabs 2
tabs 2,4,6,8,10,12,14,16,18,20
# instant prompt should stay on the top
if [[ -r "${XDG_CACHE_HOME}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
@ -75,6 +75,7 @@ zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
# source modules
source "${HOME}/.local/git/zsh_modules/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh"
source "${HOME}/.local/git/zsh_modules/wd/wd.plugin.zsh"
source "${HOME}/.local/git/zsh_modules/diff-so-fancy/diff-so-fancy.plugin.zsh"
export WD_CONFIG="${XDG_CONFIG_HOME}/wd_list"
# cleaning

View file

@ -37,7 +37,7 @@ else
# zsh modules
mkdir -p "${LOCAL_GIT_DIR}/zsh_modules"
for module in mfaerevaag/wd romkatv/powerlevel10k zdharma-continuum/fast-syntax-highlighting; do
for module in mfaerevaag/wd romkatv/powerlevel10k so-fancy/diff-so-fancy zdharma-continuum/fast-syntax-highlighting; do
rm -rf "${LOCAL_GIT_DIR}/zsh_modules/${module#*/}"
git clone https://github.com/${module} "${LOCAL_GIT_DIR}/zsh_modules/${module#*/}"
done