Skip to content
Snippets Groups Projects
Commit d3aca63d authored by Aljoscha Malek Esfahani's avatar Aljoscha Malek Esfahani
Browse files

comments

parent 8f9ef722
No related branches found
No related tags found
No related merge requests found
#! /bin/bash
# manual installation:
#
# colorscheme
# https://github.com/morhetz/gruvbox/blob/master/colors/gruvbox.vim
# https://www.youtube.com/watch?v=Ow03haHO1NE
# -> https://github.com/morhetz/gruvbox/blob/master/colors/gruvbox.vim
# -> https://www.youtube.com/watch?v=Ow03haHO1NE
# Plugins
# https://www.youtube.com/watch?v=QB9V__3VO2s
# https://web.archive.org/web/20210106062619/https://www.chrisatmachine.com/Neovim/01-vim-plug/
# -> https://www.youtube.com/watch?v=QB9V__3VO2s
# -> https://web.archive.org/web/20210106062619/https://www.chrisatmachine.com/Neovim/01-vim-plug/
#
# Easy mode (Spacevim)
# -> https://spacevim.org/
choice=""
while [ "$choice" != "y" -a "$choice" != "n" ]
do
echo "Install easy mode (Spacevim)? Also removes Spacevim if already installed [y/n]"
read choice
done
helpme()
{
echo "usage: nvimSetup [options]"
echo ""
echo -e " -r \t removes current nvim config directory\n \t (requires superuser priviliges)"
}
#Implement flags in the future here
for flag in "$@"
......@@ -22,11 +28,24 @@ do
in
-r)
sudo rm -r ~/.config/nvim;;
--help)
helpme
exit 0;;
*)
echo "unknown command $flag";;
echo "unknown command $flag"
exit 1;;
esac
done
choice=""
while [ "$choice" != "y" -a "$choice" != "n" ]
do
echo "Install easy mode (Spacevim)? Also removes Spacevim if already installed [y/n]"
read choice
done
if [ "$choice" = "y" ]
then
......@@ -71,10 +90,6 @@ else
fi
##############################################
###########failsafe for idiots################
#exit 0
##############################################
#fetching vim plug
curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment