#!/bin/sh set -ex if [ "$(id -u)" -eq 0 ] ; then pkgin install \ ca-certificates \ git \ go \ mosh \ mozilla-rootcerts \ neofetch \ neovim \ oksh \ opendoas \ ripgrep \ rsync \ sudo \ tmux \ mozilla-rootcerts install || echo "It's fine..." echo "permit nopass :wheel as root" > /usr/pkg/etc/doas.conf exit 0; fi if ! [ -r /usr/pkg/etc/doas.conf ] ; then echo "Run as root first, then as a regular user" fi doas pkgin install \ feh \ firefox \ picom \ pkg-config \ shellcheck \ tigervnc \ xfce4 \ cd "$HOME" for pkg in dwm st dmenu ; do mkdir -p scm/x/$pkg cd scm/x/$pkg ! [ -d .git ] && git clone -b netbsd https://git.riedstra.dev/x/$pkg . make doas make clean install cd - done if ! [ -e ~/.profile.lang ] ; then cat > ~/.profile.lang <> ~/.profile fi # Probably better ways of doing this... if ! grep -q '^export LD_LIBR' ~/.kshrc.local ; then cat >> ~/.kshrc.local < ~/.xinitrc <