Skip to content

Commit 1cf2563

Browse files
committed
🐛 Fix wrong project name
1 parent 592ad05 commit 1cf2563

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

prompt-style.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ local function wakatime(cmd)
1818
if s ~= nil then
1919
local project = io.popen("git rev-parse --show-toplevel 2> /dev/null"):read()
2020
if project == nil then
21-
project = string.match(lfs.currentdir(), "[^/]+$")
21+
project = lfs.currentdir()
2222
end
23+
project = string.match(project, "[^/]+$")
2324
cmd = string.format(cmd, project)
2425
end
2526
io.popen(cmd)

0 commit comments

Comments
 (0)