mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-16 05:13:11 +01:00
f5fcf8962d
Although learning about package management for rpm-based distributions was a fun experience, it's not realistic to maintain long-term. In this case, it may be easier to simply install packages on a case-by-case basis, making use of Ansible for anything else.
30 lines
555 B
Bash
Executable File
30 lines
555 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 &
|
|
|
|
# Run make
|
|
make
|
|
|
|
# Revoke privileges
|
|
sudo -K
|
|
|
|
# Install dotfiles
|
|
make -C ..
|
|
|
|
# Change the color scheme to a sane default
|
|
wal --theme base16-tomorrow-night
|
|
|
|
# Run vim for the first time (i.e. install plugins and exit)
|
|
nvim
|