vault backup: 2025-12-08 15:26:24
Affected files: 21.01. OS/21.01. Linux/00. 重灌基本步驟.md
This commit is contained in:
@@ -19,17 +19,19 @@ mkdir ~/log
|
|||||||
12. 安裝 [delta](https://github.com/dandavison/delta)
|
12. 安裝 [delta](https://github.com/dandavison/delta)
|
||||||
1. Goto https://github.com/dandavison/delta/releases and download deb file.
|
1. Goto https://github.com/dandavison/delta/releases and download deb file.
|
||||||
2. Use `dpkg -i file.deb` to install
|
2. Use `dpkg -i file.deb` to install
|
||||||
3. 修改 `~/.gitconfig`:
|
3. 修改 `~/.gitconfig`,加入:
|
||||||
```
|
```
|
||||||
[core]
|
[core]
|
||||||
pager = delta
|
pager = delta
|
||||||
|
|
||||||
[interactive]
|
[interactive]
|
||||||
diffFilter = delta --color-only
|
diffFilter = delta --color-only --side-by-side
|
||||||
|
|
||||||
[delta]
|
[delta]
|
||||||
navigate = true # use n and N to move between diff sections
|
navigate = true # use n and N to move between diff sections
|
||||||
dark = true # or light = true, or omit for auto-detection
|
dark = true # or light = true, or omit for auto-detection
|
||||||
|
line-numbers = true
|
||||||
|
side-by-side = true
|
||||||
|
|
||||||
[merge]
|
[merge]
|
||||||
conflictStyle = zdiff3
|
conflictStyle = zdiff3
|
||||||
|
|||||||
Reference in New Issue
Block a user