Skip to content

Commit

Permalink
⚡ Use io.popen() to replace os.execute()
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Dec 4, 2023
1 parent 8cd55b9 commit 6d80a09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prompt-style.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ local function wakatime(cmd)
string.match(lfs.currentdir(), "[^/]+$")
)
end
os.execute(cmd)
io.popen(cmd)
return ""
end

Expand Down

0 comments on commit 6d80a09

Please sign in to comment.