Browse Source

Add Delta (gitdiff tool) config

master
arnaucube 4 years ago
parent
commit
4728119bab
2 changed files with 19 additions and 0 deletions
  1. +10
    -0
      .gitconfig
  2. +9
    -0
      install-new-server.sh

+ 10
- 0
.gitconfig

@ -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

+ 9
- 0
install-new-server.sh

@ -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

Loading…
Cancel
Save