We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 592ad05 commit 1cf2563Copy full SHA for 1cf2563
prompt-style.lua
@@ -18,8 +18,9 @@ local function wakatime(cmd)
18
if s ~= nil then
19
local project = io.popen("git rev-parse --show-toplevel 2> /dev/null"):read()
20
if project == nil then
21
- project = string.match(lfs.currentdir(), "[^/]+$")
+ project = lfs.currentdir()
22
end
23
+ project = string.match(project, "[^/]+$")
24
cmd = string.format(cmd, project)
25
26
io.popen(cmd)
0 commit comments