Clean some tasks
This commit is contained in:
parent
21a3f05d47
commit
66b55e4ed5
2 changed files with 134 additions and 11 deletions
35
common.toml
35
common.toml
|
@ -1,3 +1,6 @@
|
|||
###
|
||||
### Macros
|
||||
###
|
||||
[macros.install__ubuntu]
|
||||
prefix = ["sudo", "apt-get", "install"]
|
||||
|
||||
|
@ -7,26 +10,36 @@
|
|||
[macros.install__archlinux]
|
||||
prefix = ["sudo", "pacman", "-S"]
|
||||
|
||||
[tasks.default]
|
||||
links = [
|
||||
[".config/htop/htoprc", "config/htop"]
|
||||
]
|
||||
|
||||
[tasks.git]
|
||||
###
|
||||
### 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]
|
||||
rejects = [["which", "git"]],
|
||||
rejects = [["which", "git"]]
|
||||
cmds = [["@install", "git"]]
|
||||
templates = [
|
||||
[".gitconfig", "gitconfig"]
|
||||
]
|
||||
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"],
|
||||
["chsh", "-s", "/bin/zsh"],
|
||||
["git" ,"clone", "--depth=1" ,"https://github.com/robbyrussell/oh-my-zsh.git", ".oh-my-zsh"],
|
||||
]
|
||||
links = [[".zshrc", "config/zshrc"]]
|
||||
|
||||
###
|
||||
### Run
|
||||
###
|
||||
[tasks.default]
|
||||
deps = ["htop", "tmux", "git", "zsh"]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue