Kmpl: default OLLIE_TOOLS_PATH if unset
This commit is contained in:
parent
c282adfd67
commit
03c3f1382c
|
|
@ -2,6 +2,8 @@
|
||||||
# Kmpl: acme glue for u/complete. Triggers completion and prints result to stdout.
|
# Kmpl: acme glue for u/complete. Triggers completion and prints result to stdout.
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
|
OLLIE_TOOLS_PATH=${OLLIE_TOOLS_PATH:-$HOME/.config/ollie/tools}
|
||||||
|
|
||||||
cmd=${0##*/}
|
cmd=${0##*/}
|
||||||
die() { printf '%s: %s\n' "$cmd" "$*" >&2; exit 1; }
|
die() { printf '%s: %s\n' "$cmd" "$*" >&2; exit 1; }
|
||||||
try() { "$@" 2>/dev/null || { ollie-remount && "$@"; }; }
|
try() { "$@" 2>/dev/null || { ollie-remount && "$@"; }; }
|
||||||
|
|
|
||||||
Reference in New Issue