Skip to content

Commit

Permalink
🐛 Fix wrong string
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Dec 4, 2023
1 parent 710ee4e commit 8cd55b9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions prompt-style.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ if table.unpack == nil then table.unpack = unpack end
---@param cmd string
---@return string
local function wakatime(cmd)
cmd = cmd or "wakatime-cli --write --plugin=repl-lua-wakatime \
--entity-type=app entity=lua --alternate-language=lua --project=%s"
cmd = cmd or "wakatime-cli --write --plugin=repl-lua-wakatime " ..
"--entity-type=app --entity=lua --alternate-language=lua --project=%s"
local s, _ = string.find(cmd, "%s")
if s ~= nil then
cmd = string.format(cmd,
Expand Down Expand Up @@ -110,11 +110,11 @@ end
local function generate_ps1(char, sections)
char = char or ""
sections = sections or {
---@diagnostic disable: missing-parameter
{ "", "", wakatime },
{ "black", "yellow", get_icon() }, { "blue", "black", get_version() },
{ "white", "blue", get_cwd }, { "black", "white", get_time }
}
---@diagnostic disable: missing-parameter
{ "", "", wakatime },
{ "black", "yellow", get_icon() }, { "blue", "black", get_version() },
{ "white", "blue", get_cwd }, { "black", "white", get_time }
}
local sep = ""
local format = " %s "
return function()
Expand Down

0 comments on commit 8cd55b9

Please sign in to comment.