mirror of
https://github.com/arnaucube/configs.git
synced 2026-02-10 12:36:42 +01:00
Add Delta (gitdiff tool) config
This commit is contained in:
10
.gitconfig
Normal file
10
.gitconfig
Normal file
@@ -0,0 +1,10 @@
|
||||
[core]
|
||||
pager = delta
|
||||
[delta]
|
||||
line-numbers = true
|
||||
side-by-side = true
|
||||
plus-color = "#012800"
|
||||
minus-color = "#340001"
|
||||
syntax-theme = Monokai Extended
|
||||
[interactive]
|
||||
diffFilter = delta --color-only
|
||||
@@ -65,6 +65,15 @@ echo "instaling ripgrep"
|
||||
curl -LO https://github.com/BurntSushi/ripgrep/releases/download/11.0.2/ripgrep_11.0.2_amd64.deb
|
||||
dpkg -i ripgrep_11.0.2_amd64.deb
|
||||
|
||||
echo "install Rust"
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
||||
|
||||
# assuming that Rust is installed
|
||||
echo "installing delta (gitdiff tool)"
|
||||
cargo install git-delta
|
||||
echo "append .gitconfig of this repo lines to the .gitconfig system file to use delta gitdiff tool"
|
||||
cat .gitconfig >> ~/.gitconfig
|
||||
|
||||
# nginx
|
||||
apt install nginx -y
|
||||
|
||||
|
||||
Reference in New Issue
Block a user