File tree 3 files changed +12
-3
lines changed
3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env -S luajittex --luaonly
2
- kpse .set_program_name (' luajittex ' )
2
+ kpse .set_program_name (status . list (). luatex_engine )
3
3
local utils = require " prompt.utils"
4
4
5
5
utils .init ()
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env -S luatex --luaonly
2
- kpse .set_program_name (' luatex ' )
2
+ kpse .set_program_name (status . list (). luatex_engine )
3
3
local utils = require " prompt.utils"
4
4
5
5
utils .init ()
Original file line number Diff line number Diff line change 200
200
201
201
--- init prompt
202
202
function M .init ()
203
- if arg and arg [0 ] and prompt .name == " lua" then
203
+ -- luacheck: ignore 111 113
204
+ --- @diagnostic disable : undefined-global
205
+ if vim then
206
+ prompt .name = " nvim"
207
+ elseif pandoc then
208
+ prompt .name = " pandoc"
209
+ elseif status then
210
+ prompt .name = status .list ().luatex_engine
211
+ elseif arg and arg [0 ] and prompt .name == " lua" then
204
212
prompt .name = arg [0 ]:gsub (" .*/" , " " ):gsub (" p$" , " " )
205
213
end
214
+
206
215
prompt .prompts = prompt .prompts or { ' > ' , ' >> ' }
207
216
if prompt .colorize == nil then
208
217
prompt .colorize = true
You can’t perform that action at this time.
0 commit comments