1
0
forked from extern/nix-config
donovanglover-nix-config/.fedora/bootstrap.sh
Donovan Glover fb20cb3620
fedora: Install vim plugins during bootstrap.sh
This makes it possible to immediately use vim with all the plugins
installed after running bootstrap.sh, no intervention needed.
2018-11-18 03:46:33 -05:00

27 lines
504 B
Bash
Executable File

#!/bin/sh
# End the script on any errors
set -e
# Change the working directory to this one
cd "$(dirname "$0")"
# Get administrative privileges
sudo -v
# Keep pinging sudo until this script finishes
# Source: https://gist.github.com/cowboy/3118588
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
# Install dependencies
sudo -n dnf install -y make fedpkg
# Run make
make
# Run vim for the first time (i.e. install plugins and exit)
nvim
# Revoke privileges
sudo -K