102 lines
2 KiB
TOML
102 lines
2 KiB
TOML
###
|
|
### Macros
|
|
###
|
|
[macros.install__debian]
|
|
prefix = ["sudo", "apt-get", "install", "-y"]
|
|
|
|
[macros.install__work]
|
|
prefix = ["ovh-root", "install"]
|
|
|
|
[macros.install__Archlinux]
|
|
prefix = ["sudo", "pacman", "-S", "--no-confirm"]
|
|
|
|
[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]
|
|
links = [[".config/htop/htoprc", "config/htop"]]
|
|
# rejects = [["which", "htop"]]
|
|
cmds = [["@install", "htop"]]
|
|
|
|
[tasks.asciinema]
|
|
cmds = [["@install", "asciinema"]]
|
|
links = [[".config/asciinema/config", "config/asciinema"]]
|
|
|
|
[tasks.tmux]
|
|
links = [[".tmux.conf", "config/tmux"]]
|
|
# rejects = [["which", "tmux"]]
|
|
cmds = [["@install", "tmux"]]
|
|
|
|
[tasks.nano]
|
|
links = [[".nanorc", "config/nanorc"]]
|
|
|
|
[tasks.git]
|
|
cmds = [["@install", "git"]]
|
|
templates = [[".gitconfig", "config/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"],
|
|
["termite.terminfo", "config/termite.terminfo"]
|
|
]
|
|
|
|
[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"
|
|
]]
|
|
[tasks.term]
|
|
cmds = [
|
|
["wget", "https://raw.githubusercontent.com/thestinger/termite/master/termite.terminfo"],
|
|
["tic", "-x", "termite.terminfo"]
|
|
]
|
|
|
|
[tasks.ssh]
|
|
templates = [
|
|
[".ssh/config", "config/ssh/config"]
|
|
]
|
|
|
|
[tasks.vim]
|
|
links = [
|
|
[".viminfo", "config/vim/viminfo"],
|
|
[".vimrc", "config/vim/vimrc"],
|
|
[".vim/autoload", "config/vim/autoload"],
|
|
[".vim/bundle", "config/vim/bundle"],
|
|
[".vim/colors", "config/vim/colors"],
|
|
]
|
|
|
|
###
|
|
### Run
|
|
###
|
|
[tasks.default]
|
|
deps = ["htop", "tmux", "git", "zsh", "dev", "vim", "golang", "ssh", "nano"]
|