-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
37 lines (30 loc) · 1.1 KB
/
justfile
File metadata and controls
37 lines (30 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
shebang := if os() == 'windows' { 'pwsh.exe' } else { '/usr/bin/env pwsh' }
set shell := ["pwsh", "-c"]
set windows-shell := ["pwsh.exe", "-NoLogo", "-Command"]
set dotenv-load := true
# set dotenv-filename := ".env"
# set dotenv-required := true
# INFO: if you want to edit the justfile use js -e.
help:
@just --list -f "{{home_directory()}}/justfile"
default_arg := 'TODO:'
alias td := todo
todo todo=default_arg:
rg {{todo}} -g '!justfile' -g "!third_party"
hello:
@Write-Host "Hello, world!" -ForegroundColor Yellow
placeholder:
#!{{ shebang }}
Write-Host "Havent written build task for this repo." -ForegroundColor Red
if($env:pwsh_env) {Write-Host "$env:pwsh_env"}
else {Write-Host "Apparently no .env as well" -ForegroundColor Yellow}
# INFO: basic `run` recipe.
alias r := run
default_args := 'args here'
run args=default_args:
@Write-Host {{default_args}} -ForegroundColor Red
kill -Name nvim*
nvim -c "lua require('resession').load 'Last Session'"
alias b := build
build:
Copy-Item ./lua "$env:LOCALAPPDATA\nvim-data\lazy\emacsinsert.nvim" -Recurse -Force