Skip to content

Commit

Permalink
justfile: use just_executable()
Browse files Browse the repository at this point in the history
  • Loading branch information
laniakea64 committed Nov 1, 2023
1 parent f25560b commit 3451e22
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
@@ -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]
Expand Down Expand Up @@ -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}})"

0 comments on commit 3451e22

Please sign in to comment.