s() { sudo "$@"; }
lnf() { /a/exe/lnf "$@"; }
+now=$(date +%s)
+
+# error prone
+#f=~/.local/conflink
+# fast=false
+# if [[ -e $f ]] && (( $(stat -c %Y $f) > $now - 60*60*24 )); then
+# fast=true
+# fi
if [[ $1 == -f ]]; then # f for fast
- lnf() { ln -sf "$@"; }
+ fast=true
+ shift
elif
[[ $1 ]]; then
echo "error: unrecognized arguments" >&2
exit 0
fi
+if $fast; then
+ lnf() { ln -sf "$@"; }
+fi
+
shopt -s nullglob
shopt -s extglob
shopt -s dotglob
echo "$0: error: unexpected user"; exit 1
;;
esac
-