### ### 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.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/colors/molokai.vim", "config/vim/molokai.vim"] ] ### ### Run ### [tasks.default] deps = ["htop", "tmux", "git", "zsh", "dev", "vim", "golang", "ssh", "nano"]