arnaucube
arnaucube/configsPublic Self-hosted repository
Add Delta (gitdiff tool) config
arnaucube root@arnaucube.com
Sat, 17 Oct 2020 10:33:31 +0200
commit

4728119babe534e95d9ead480e12b493b8010ce6

parent

6957e46e1fa7ad049fb66835cbf900e600e1be16

2 files changed, 19 insertions(+), 0 deletions(-)

jump to
A .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
M install-new-server.sh → 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