66 lines
1.2 KiB
TOML
66 lines
1.2 KiB
TOML
###
|
|
### Macros
|
|
###
|
|
[macros.install__ubuntu]
|
|
prefix = ["sudo", "apt-get", "install"]
|
|
|
|
[macros.install__arch]
|
|
prefix = ["sudo", "pacman", "-S"]
|
|
|
|
[macros.clone]
|
|
deps = ["git"]
|
|
prefix = ["git", "clone"]
|
|
|
|
[macros.go-get]
|
|
deps = ["golang"]
|
|
prefix = ["go", "get"]
|
|
|
|
[macros.npm-install]
|
|
deps = ["node"]
|
|
prefix = ["npm", "install", "-u"]
|
|
|
|
###
|
|
### Tasks
|
|
###
|
|
[tasks.htop]
|
|
rejects = [["which", "htop"]]
|
|
cmds = [["@install", "htop"]]
|
|
links = [[".config/htop/htoprc", "config/htop"]]
|
|
|
|
[tasks.tmux]
|
|
rejects = [["which", "tmux"]]
|
|
cmds = [["@install", "tmux"]]
|
|
links = [[".zshrc", "config/tmux"]]
|
|
|
|
[tasks.git]
|
|
cmds = [["@install", "git"]]
|
|
templates = [[".gitconfig", "gitconfig"]]
|
|
|
|
[tasks.zsh]
|
|
rejects = [["which", "zsh"]]
|
|
cmds = [["@install", "zsh"],
|
|
["@clone", "--depth=1" ,"https://github.com/robbyrussell/oh-my-zsh.git", ".oh-my-zsh"],
|
|
["chsh", "-s", "/bin/zsh"]
|
|
]
|
|
links = [[".zshrc", "config/zshrc"]]
|
|
|
|
[tasks.golang]
|
|
envs = [["GOPATH", "${HM_DEST}/projects/go"]]
|
|
cmds = [["mkdir", "-p", "$GOPATH"], ["@install", "golang"]]
|
|
|
|
[tasks.node]
|
|
cmds = [["@install", "nodejs", "npm"]]
|
|
|
|
[tasks.dev]
|
|
deps = ["git", "golang"]
|
|
cmds = [["@install",
|
|
"make",
|
|
"automake",
|
|
"gcc"
|
|
]]
|
|
###
|
|
### Run
|
|
###
|
|
[tasks.default]
|
|
deps = ["htop", "tmux", "git", "zsh", "dev"]
|
|
|