mirror of
https://github.com/blahai/nyx.git
synced 2025-01-19 19:40:21 +00:00
19 lines
345 B
Lua
19 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
|