diff --git a/bin/homemaker.amd64 b/bin/homemaker.amd64 new file mode 100755 index 0000000..3249633 Binary files /dev/null and b/bin/homemaker.amd64 differ diff --git a/bin/homemaker.arm b/bin/homemaker.arm new file mode 100755 index 0000000..264bbf4 Binary files /dev/null and b/bin/homemaker.arm differ diff --git a/common.toml b/common.toml index 430f5bb..ec8f700 100644 --- a/common.toml +++ b/common.toml @@ -2,14 +2,22 @@ ### Macros ### [macros.install__ubuntu] - prefix = ["sudo", "apt-get", "install"] + prefix = ["sudo", "apt-get", "install"] [macros.install__arch] - prefix = ["sudo", "pacman", "-S"] + prefix = ["sudo", "pacman", "-S"] -[macros.install__archlinux] - 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 @@ -25,21 +33,34 @@ links = [[".zshrc", "config/tmux"]] [tasks.git] - rejects = [["which", "git"]] cmds = [["@install", "git"]] templates = [[".gitconfig", "gitconfig"]] [tasks.zsh] rejects = [["which", "zsh"]] cmds = [["@install", "zsh"], - ["chsh", "-s", "/bin/zsh"], - ["git" ,"clone", "--depth=1" ,"https://github.com/robbyrussell/oh-my-zsh.git", ".oh-my-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"] + deps = ["htop", "tmux", "git", "zsh", "dev"]