#!/bin/sh # Installs dotfiles and Python packages set -e SCRIPT_NAME="$(basename $0)" # Default source for dotfiles SRCFOLDER="$(dirname "$0")/src/" PYREQS="$(realpath "$(dirname "$0")/programs-python")" DESTFOLDER="$HOME" # Allow overwriting of outdated files FORCE="N" VERBOSE="N" INSTALL_PYTHON="N" display_help () { cat >&2 <&2 fi fi else link "$SRC" "$DEST" fi done printf "Symlinked dotfiles.\n" >&2 if [ "$INSTALL_PYTHON" = "Y" ]; then if command -v pipx > /dev/null; then printf "Installing Python packages via pipx...\n" >&2 "$PYREQS" else printf "'pipx' is missing. Not installing Python packages...\n" >&2 fi fi