(git) introducting diff-so-fancy
This commit is contained in:
parent
ed9ef50e66
commit
2cdab434ac
3 changed files with 10 additions and 3 deletions
|
@ -10,7 +10,7 @@
|
||||||
gpgsign = true
|
gpgsign = true
|
||||||
[core]
|
[core]
|
||||||
autocrlf = false
|
autocrlf = false
|
||||||
pager = less -FRX
|
pager = diff-so-fancy | less --tabs=2 -RF
|
||||||
[gpg]
|
[gpg]
|
||||||
format = ssh
|
format = ssh
|
||||||
[http]
|
[http]
|
||||||
|
@ -26,3 +26,9 @@
|
||||||
|
|
||||||
[include]
|
[include]
|
||||||
path = ~/.local/config/git
|
path = ~/.local/config/git
|
||||||
|
[interactive]
|
||||||
|
diffFilter = diff-so-fancy --patch
|
||||||
|
[diff-so-fancy]
|
||||||
|
markEmptyLines = true
|
||||||
|
changeHunkIndicators = true
|
||||||
|
rulerWidth = 40
|
||||||
|
|
|
@ -7,7 +7,7 @@ if [[ -f "${HOME}/.note" ]]; then
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
tabs 2
|
tabs 2,4,6,8,10,12,14,16,18,20
|
||||||
|
|
||||||
# instant prompt should stay on the top
|
# instant prompt should stay on the top
|
||||||
if [[ -r "${XDG_CACHE_HOME}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
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 modules
|
||||||
source "${HOME}/.local/git/zsh_modules/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh"
|
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/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"
|
export WD_CONFIG="${XDG_CONFIG_HOME}/wd_list"
|
||||||
|
|
||||||
# cleaning
|
# cleaning
|
||||||
|
|
|
@ -37,7 +37,7 @@ else
|
||||||
|
|
||||||
# zsh modules
|
# zsh modules
|
||||||
mkdir -p "${LOCAL_GIT_DIR}/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#*/}"
|
rm -rf "${LOCAL_GIT_DIR}/zsh_modules/${module#*/}"
|
||||||
git clone https://github.com/${module} "${LOCAL_GIT_DIR}/zsh_modules/${module#*/}"
|
git clone https://github.com/${module} "${LOCAL_GIT_DIR}/zsh_modules/${module#*/}"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue