Skip to content

Commit

Permalink
improv: use jit.os to detect OS
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Oct 28, 2024
1 parent b22bd06 commit 0cfbe66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/tinygit/commands/push-pull.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ local function pushCmd(opts)
u.notify(out, result.code == 0 and "info" or "error", "Push")

-- sound
if config.confirmationSound and vim.uv.os_uname().sysname == "Darwin" then
if config.confirmationSound and jit.os == "OSX" then
local sound = result.code == 0
and "/System/Library/Components/CoreAudio.component/Contents/SharedSupport/SystemSounds/siri/jbl_confirm.caf" -- codespell-ignore
or "/System/Library/Sounds/Basso.aiff"
Expand Down

0 comments on commit 0cfbe66

Please sign in to comment.