diff --git a/setup/setup_git b/setup/setup_git new file mode 100755 index 0000000..acac41b --- /dev/null +++ b/setup/setup_git @@ -0,0 +1,7 @@ +#!/bin/sh + +set -Eeuo pipefail + +git config --global user.name "Ian Mancini" +git config --global user.email ianmethyst@gmail.com +git config --global core.editor nvim diff --git a/setup/setup_hostname b/setup/setup_hostname new file mode 100755 index 0000000..47462ff --- /dev/null +++ b/setup/setup_hostname @@ -0,0 +1,21 @@ +#!/bin/sh + +set -Eeo pipefail + +if (( $EUID != 0 )); then + echo "Should be run as root" + exit 1 +fi + +if [ -z "$1" ] + then + echo "Usage: $(basename $0) hostname" +fi + +echo $1 > /etc/hostname + +cat >> /etc/hosts < /etc/locale.conf diff --git a/setup/setup_user b/setup/setup_user new file mode 100755 index 0000000..daf5a6e --- /dev/null +++ b/setup/setup_user @@ -0,0 +1,11 @@ +#!/bin/sh + +set -Eeuo pipefail + +if (( $EUID != 0 )); then + echo "Should be run as root" + exit 1 +fi + +useradd -m -G wheel -s '/usr/bin/zsh' ianmethyst +sed -i '/^# %wheel ALL=(ALL) ALL/s/^# //g' /etc/sudoers