#!/bin/bash
source /a/bin/errhandle/err
+_errcatch_cleanup() {
+ echo 1 >~/.local/conflink
+}
+
+
+usage() {
+ cat <<EOF
+Usage: ${0##*/} [OPTIONS]
+Link or otherwise install configuration files.
+
+-f For fast. Dont use lnf, use ln -sf. Good for updating existing files.
+EOF
+ exit $1
+}
+
m() {
echo "$*"
"$@"
}
s() { sudo "$@"; }
-lnf() { /a/exe/lnf "$@"; }
+lnf() { /a/exe/lnf "$@"; }
+if [[ $1 == -f ]]; then # f for fast
+ lnf() { ln -sf "$@"; }
+elif
+ [[ $1 ]]; then
+ echo "error: unrecognized arguments" >&2
+ exit 0
+fi
shopt -s nullglob
shopt -s extglob
fi
m sudo -H -u user2 "${BASH_SOURCE[0]}"
+
+ f=/a/bin/distro-setup/system-status
+ if [[ -x $f ]]; then
+ $f _
+ fi
+ echo 0 >~/.local/conflink
+
;;
user2)
m common-file-setup ${c_dirs[@]}
echo "$0: error: unexpected user"; exit 1
;;
esac
+