[user] name = rydesun email = rydesun@gmail.com signingkey = rydesun@gmail.com [log] date = iso [alias] lgl = log --oneline --abbrev=5 --graph --decorate --all lg = lgl -5 gl = lg st = status --short sts = show --name-status c = commit b = branch p = push co = checkout rb = rebase ls = ls-files d = diff --relative ds = diff --staged --relative s = show [pull] rebase = true [credential] helper = cache [url "https://github.com"] insteadOf = git://github.com [core] ; Unicode文件名 quotepath = off ; https://github.com/samjwill/nvim-unception#working-with-git editor = nvim --cmd 'let g:unception_block_while_host_edits=1' ; {{{ delta配置(需要安装delta) ; https://github.com/dandavison/delta [core] ; https://github.com/dandavison/delta/issues/447 pager = delta --features "$(case \ "$(gsettings get org.gnome.desktop.interface color-scheme)" \ in *light*) echo light-theme;; *) echo dark-theme;; esac)" [interactive] diffFilter = delta --color-only [delta] ; 去掉文件名的下划线 file-decoration-style = none [delta "dark-theme"] ; commit信息增加下划线 commit-decoration-style = bold ul ; 文件名以块状显示 file-style = bold black white ; diff的配色 minus-style = syntax "#39180b" minus-emph-style = normal "#734347" plus-style = syntax "#1a2810" plus-emph-style = normal "#406040" [delta "light-theme"] commit-decoration-style = bold ul orange file-style = bold white black ; diff的配色 syntax-theme = "GitHub" ; }}} # vim: foldmethod=marker:foldlevel=0