git: difftool

Signed-off-by: Michael Grote <michael.grote@dataport.de>
This commit is contained in:
Michael Grote 2024-03-18 09:32:12 +01:00
parent f77bc040e8
commit 17715d2e2a
No known key found for this signature in database
GPG Key ID: 61CCE602D9EC9A33
3 changed files with 11 additions and 1 deletions

View File

@ -283,7 +283,7 @@ alias gs="git status"
alias gf="git fetch"
alias gdel="git reset --hard ; git clean -f"
alias glast="git log -1 HEAD --stat"
alias gd="git diff"
alias gd="git difftool"
alias gsp="git stage -p"
# docker
alias dcu="docker-compose up"

View File

@ -38,3 +38,6 @@ addEmptyPathspec = false
gpgsign = true
[rerere]
enabled = true
[diff]
tool = vimdiff

7
.vimrc
View File

@ -34,6 +34,8 @@ Plugin 'ConradIrwin/vim-bracketed-paste'
Plugin 'mbbill/undotree'
" highlight yanked text
Plugin 'machakann/vim-highlightedyank'
" nord theme für vimdiff
Plugin 'nordtheme/vim'
call vundle#end()
let mapleader = ","
@ -228,3 +230,8 @@ endfunction
" yaml einrückung
autocmd FileType yaml setlocal ai ts=2 sw=2 et
autocmd FileType yml setlocal ai ts=2 sw=2 et
" set colorscheme for vimdiff
if &diff
colorscheme nord
endif