Homemaker
This commit is contained in:
parent
b064077703
commit
120ce97d0e
8 changed files with 594 additions and 58 deletions
99
common.toml
99
common.toml
|
@ -1,15 +1,6 @@
|
|||
###
|
||||
### Macros
|
||||
###
|
||||
[macros.install__debian]
|
||||
prefix = ["apt-get", "install", "-y"]
|
||||
|
||||
[macros.install__work]
|
||||
prefix = ["ovh-root", "install"]
|
||||
|
||||
[macros.install__Archlinux]
|
||||
prefix = ["pacman", "-S", "--noconfirm"]
|
||||
|
||||
[macros.clone]
|
||||
deps = ["git"]
|
||||
prefix = ["git", "clone"]
|
||||
|
@ -25,67 +16,34 @@
|
|||
###
|
||||
### 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"]
|
||||
["tic", "-x", "external/termite/termite.terminfo"]
|
||||
]
|
||||
|
||||
[tasks.tmux]
|
||||
links = [[".tmux.conf", "config/tmux"]]
|
||||
|
||||
[tasks.ssh]
|
||||
templates = [
|
||||
[".ssh/config", "config/ssh/config"]
|
||||
]
|
||||
|
||||
[tasks.git]
|
||||
templates = [[".gitconfig", "config/gitconfig"]]
|
||||
|
||||
[tasks.nano]
|
||||
links = [[".nanorc", "config/nanorc"]]
|
||||
|
||||
[tasks.vim]
|
||||
links = [
|
||||
[".viminfo", "config/vim/viminfo"],
|
||||
|
@ -94,9 +52,44 @@
|
|||
[".vim/bundle", "config/vim/bundle"],
|
||||
[".vim/colors", "config/vim/colors"],
|
||||
]
|
||||
|
||||
[tasks.htop]
|
||||
links = [[".config/htop/htoprc", "config/htop"]]
|
||||
|
||||
[tasks.asciinema]
|
||||
links = [[".config/asciinema/config", "config/asciinema"]]
|
||||
|
||||
[tasks.golang]
|
||||
envs = [["GOPATH", "${HM_DEST}/projects/go"]]
|
||||
cmds = [
|
||||
["mkdir", "-p", "$GOPATH"],
|
||||
]
|
||||
|
||||
[tasks.profanity]
|
||||
links = [[".config/profanity/profrc", "config/profrc"]]
|
||||
|
||||
[tasks.awesome]
|
||||
links = [[".config/awesome", "config/awesome"]]
|
||||
|
||||
[tasks.nitrogen]
|
||||
links = [[".config/nitrogen", "config/nitrogen"]]
|
||||
|
||||
###
|
||||
### Run
|
||||
###
|
||||
[tasks.default]
|
||||
deps = ["htop", "tmux", "git", "zsh", "dev", "vim", "golang", "ssh", "nano"]
|
||||
deps = [
|
||||
"zsh",
|
||||
"term",
|
||||
"tmux",
|
||||
"ssh",
|
||||
"git",
|
||||
"nano",
|
||||
"vim",
|
||||
"htop",
|
||||
"golang",
|
||||
"asciinema",
|
||||
"profanity",
|
||||
"awesome",
|
||||
"nitrogen",
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue