dotfiles/common.toml
2018-05-22 14:35:13 +00:00

81 lines
1.6 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"
]]
[tasks.term]
cms = [["wget", "https://raw.githubusercontent.com/thestinger/termite/master/termite.terminfo"], ["tic", "-x", "termite.terminfo"]]
[tasks.git]
templates = [[".ssh/config", "git_config"]]
[tasks.vim]
links = [
[".viminfo", "config/vim/viminfo"],
[".vimrc", "config/vim/vimrc"],
[".vim/colors/molokai.vim", "config/vim/molokai.vim"]
]
###
### Run
###
[tasks.default]
deps = ["htop", "tmux", "git", "zsh", "dev"]