mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
9 lines
279 B
Lua
9 lines
279 B
Lua
|
local HOME = clink.get_env("USERPROFILE") .."\\"
|
||
|
local AUTOJUMP_BIN = HOME .. ".autojump\\bin\\autojump"
|
||
|
|
||
|
function autojump_add_to_database()
|
||
|
os.execute("python " .. AUTOJUMP_BIN .. " --add " .. clink.get_cwd())
|
||
|
end
|
||
|
|
||
|
clink.prompt.register_filter(autojump_add_to_database, 99)
|