Skip to content

Commit da9abb3

Browse files
committed
📝 Add document about wakatime
1 parent 7ba2b9c commit da9abb3

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ prompt.prompts = { prompt_style.generate_ps1(), " " }
6767

6868
## Customization
6969

70+
By default, It uses the base name of current working directory as your project
71+
name. You can call `(require "prompt-style").wakatime("wakatime-cli XXX")` to
72+
customize it.
73+
7074
See
7175
[![readthedocs](https://shields.io/readthedocs/prompt-stylelua)](https://prompt-stylelua.readthedocs.io).
7276

prompt-style.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ if table.unpack == nil then table.unpack = unpack end
1212
---@param cmd string
1313
---@return string
1414
local function wakatime(cmd)
15-
cmd = cmd or "wakatime-cli --write --plugin=repl-lua-wakatime --entity-type=app \
16-
--entity=lua --alternate-language=lua --project=%s"
15+
cmd = cmd or "wakatime-cli --write --plugin=repl-lua-wakatime \
16+
--entity-type=app entity=lua --alternate-language=lua --project=%s"
1717
local s, _ = string.find(cmd, "%s")
1818
if s ~= nil then
1919
cmd = string.format(cmd,

0 commit comments

Comments
 (0)