diff --git a/.gitconfig b/.gitconfig new file mode 100644 index 0000000..bfe19d2 --- /dev/null +++ b/.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 diff --git a/install-new-server.sh b/install-new-server.sh index 27e559c..2f38b6a 100644 --- a/install-new-server.sh +++ b/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