Add installation script

This commit is contained in:
Marcelo Jacobus 2024-06-06 14:51:34 -03:00
parent 4818e4b72f
commit e307dea726

14
install.sh Executable file
View file

@ -0,0 +1,14 @@
#!/usr/bin/env bash
args=$@
targetDir=$HOME/.config/nvim
mkdir -p $targetDir
flags="--verbose=1 -t ${targetDir}"
if [[ "$args" == "--uninstall" ]]; then
echo 'Uninstalling'
flags="-D --verbose=1 -t $HOME"
fi
stow $flags . # newest