switch to chezmoi
This commit is contained in:
parent
3c5d00dbf3
commit
a8b0acd4db
76 changed files with 27 additions and 531 deletions
15
dot_config/wezterm/functions.lua
Normal file
15
dot_config/wezterm/functions.lua
Normal file
|
@ -0,0 +1,15 @@
|
|||
local function get_os()
|
||||
local current_os = os.getenv('OS')
|
||||
if current_os then return current_os end
|
||||
return io.popen('uname -s', 'r'):read()
|
||||
end
|
||||
|
||||
local function set_by_os(values)
|
||||
local my_os = get_os()
|
||||
if values[my_os] then return values[my_os] end
|
||||
return values.others
|
||||
end
|
||||
|
||||
return {
|
||||
set_by_os = set_by_os
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue