mirror of
https://github.com/kastdeur/dotfiles.git
synced 2024-12-21 16:53:33 +01:00
[git] Enable diffing documents by default
This commit is contained in:
parent
d5d0a168f5
commit
97ab089316
3 changed files with 15 additions and 1 deletions
|
@ -8,6 +8,7 @@
|
|||
- link:
|
||||
~/.bashrc: bash/bashrc
|
||||
~/.bash_profile: bash/profile
|
||||
~/.config/git/attributes: git/attributes
|
||||
~/.config/git/config: git/config
|
||||
~/.config/git/ignore_global: git/ignore
|
||||
~/.config/geany/keybindings.conf: geany/keybindings.conf
|
||||
|
|
12
git/attributes
Normal file
12
git/attributes
Normal file
|
@ -0,0 +1,12 @@
|
|||
# Automatically normalize line endings for all text-based files
|
||||
#* text=auto
|
||||
|
||||
# Documents
|
||||
*.doc diff=pandoc
|
||||
*.DOC diff=pandoc
|
||||
*.docx diff=pandoc
|
||||
*.DOCX diff=pandoc
|
||||
*.odt diff=pandoc
|
||||
*.ODT diff=pandoc
|
||||
*.pdf diff=pdf
|
||||
*.PDF diff=pdf
|
|
@ -8,6 +8,7 @@
|
|||
default = matching
|
||||
[core]
|
||||
excludesfile = ~/.config/git/ignore
|
||||
attributesfile = ~/.config/git/attributes
|
||||
[color]
|
||||
ui = auto
|
||||
[color "status"]
|
||||
|
@ -20,7 +21,7 @@
|
|||
[diff]
|
||||
mnemonicPrefix = true
|
||||
tool = vimdiff
|
||||
[diff "rst"]
|
||||
[diff "pandoc"]
|
||||
textconv = pandoc --to=rst
|
||||
[diff "pdf"]
|
||||
textconv = pdf2txt
|
||||
|
|
Loading…
Reference in a new issue