From 3451e22daade268f99b1cfeb0d9fe39f4ddc06d5 Mon Sep 17 00:00:00 2001 From: laniakea64 Date: Wed, 1 Nov 2023 18:07:28 -0400 Subject: [PATCH] justfile: use `just_executable()` --- justfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/justfile b/justfile index 594958a..c603d31 100644 --- a/justfile +++ b/justfile @@ -1,12 +1,13 @@ # Do not prevent local external justfile recipes from being run from cwd within the repo set fallback +justq := quote(just_executable()) + ' -f ' + quote(justfile()) rq := quote(justfile_directory()) synpreview_homedir := env_var_or_default('TMPDIR', '/tmp') / '_vim-just-preview-home.' + replace(uuid(), '-', '') @_default: - just -f {{quote(justfile())}} --list + {{justq}} --list # preview JUSTFILE in Vim with syntax file from this repository [no-cd] @@ -172,4 +173,4 @@ optrx +strings: # run optrx on a variable from this justfile @optrx_var var: - just -f {{quote(justfile())}} optrx "$(just -f {{quote(justfile())}} --evaluate {{var}})" + {{justq}} optrx "$({{justq}} --evaluate {{var}})"