Merge branch 'main' of github.com:jonnybarnes/dotfiles

This commit is contained in:
Jonny Barnes 2022-02-27 14:02:31 +00:00
commit a98c6bdd1c
2 changed files with 27 additions and 8 deletions

View file

@ -16,13 +16,13 @@
# Detect whitespace errors when applying a patch # Detect whitespace errors when applying a patch
whitespace = fix whitespace = fix
[color "diff-highlight"] #[color "diff-highlight"]
# Colours for `diff-so-fancy` # Colours for `diff-so-fancy`
oldNormal = "red bold" #oldNormal = "red bold"
oldHighlight = "red bold 52" #oldHighlight = "red bold 52"
newNormal = "green bold" #newNormal = "green bold"
newHighlight = "green bold 22" #newHighlight = "green bold 22"
[filter "lfs"] [filter "lfs"]
@ -41,8 +41,24 @@
# Automatically correct typos in commands # Automatically correct typos in commands
autoCorrect = prompt autoCorrect = prompt
[pager] #[pager]
# Make diff-so-fancy apply all the time # Make diff-so-fancy apply all the time
diff = "diff-so-fancy | less --tabs=4 -RFX" #diff = "diff-so-fancy | less --tabs=4 -RFX"
show = "diff-so-fancy | less --tabs=4 -RFX" #show = "diff-so-fancy | less --tabs=4 -RFX"
[core]
pager = delta
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true # use n and N to move between diff sections
[merge]
conflictstyle = zdiff3
[diff]
algorithm = histogram
colorMoved = default

View file

@ -118,6 +118,9 @@ if type thefuck &> /dev/null; then
eval $(thefuck --alias) eval $(thefuck --alias)
fi fi
# https://github.com/wfxr/forgit
test -e $HOME/git/forgit/forgit.plugin.zsh && source ~/git/forgit/forgit.plugin.zsh
# Init starship prompt -- https://starship.rs # Init starship prompt -- https://starship.rs
eval "$(starship init zsh)" eval "$(starship init zsh)"