starter/install.sh
Marcelo Jacobus 00456db8c0 MJVIM
2025-09-15 21:04:49 -03:00

18 lines
440 B
Bash
Executable file

#!/usr/bin/env bash
args=$@
targetDir=$HOME/.mjvim
mkdir -p $targetDir
flags="--verbose=1 -t ${targetDir}"
if [[ "$args" == "--uninstall" ]]; then
echo 'Uninstalling'
flags="-D --verbose=1 -t $targetDir"
fi
stow $flags . # newest
# Create alias for starting nvim with custom config
echo "alias mjvim='NVIM_APPNAME=.mjvim nvim'" >> ~/.bashrc
echo "Alias 'mjvim' added to ~/.bashrc. Run 'source ~/.bashrc' or restart terminal to use."