-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdosh.lua
36 lines (34 loc) · 788 Bytes
/
dosh.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
local config_dir = "~/.config/emacs/"
cmd.add_task {
name = "setup",
description = "setup my emacs",
command = function()
cmd.run("mkdir -p " .. config_dir)
cmd.copy("*.el", config_dir)
end
}
cmd.add_task {
name = "install",
description = "install system dependencies",
required_platforms = { "macos" },
required_commands = { "npm" },
command = function()
cmd.brew_install({
"fd",
"lua-language-server",
"multimarkdown",
"pyenv",
"ripgrep",
"rust-analyzer"
})
local npm_packages = {
"typescript",
"typescript-language-server",
"vscode-langservers-extracted",
"yaml-language-server"
}
for _, package in ipairs(npm_packages) do
cmd.run("npm i -g " .. package)
end
end
}