Add post install/update functionality.

This commit is contained in:
Bartek Stalewski 2024-06-25 00:06:22 +02:00
parent da19c0a6c9
commit c9d2cf6c80
No known key found for this signature in database
5 changed files with 25 additions and 4 deletions

13
scripts/post-install.sh Normal file
View file

@ -0,0 +1,13 @@
#!/bin/sh
# basic git configuration
if [[ ! -d ${XDG_CONFIG_HOME}/git ]]; then
mkdir -p ${XDG_CONFIG_HOME}/git
cat << EOF > ${XDG_CONFIG_HOME}/git/config
[pull]
rebase = true
EOF
fi
# nvim setup
nvim -c "lua require('lazy').sync({wait = true})" -c "MasonInstallAll"