Kmpl: default OLLIE_TOOLS_PATH if unset

This commit is contained in:
Levi Neely 2026-07-18 23:22:59 +02:00
parent c282adfd67
commit 03c3f1382c
1 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,8 @@
# Kmpl: acme glue for u/complete. Triggers completion and prints result to stdout.
set -euo pipefail
OLLIE_TOOLS_PATH=${OLLIE_TOOLS_PATH:-$HOME/.config/ollie/tools}
cmd=${0##*/}
die() { printf '%s: %s\n' "$cmd" "$*" >&2; exit 1; }
try() { "$@" 2>/dev/null || { ollie-remount && "$@"; }; }