mirror of
https://github.com/blahai/nyx.git
synced 2025-01-19 11:30:20 +00:00
18 lines
345 B
Lua
18 lines
345 B
Lua
local wezterm = require("wezterm")
|
|
local M = {}
|
|
|
|
M.is_windows = function()
|
|
return wezterm.target_triple:find("windows") ~= nil
|
|
end
|
|
|
|
---@return boolean
|
|
M.is_linux = function()
|
|
return wezterm.target_triple:find("linux") ~= nil
|
|
end
|
|
|
|
---@return boolean
|
|
M.is_darwin = function()
|
|
return wezterm.target_triple:find("darwin") ~= nil
|
|
end
|
|
|
|
return M
|