blob: 75158d63030387a5065b687bb4cc46208fe1261b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
sections:
# Installs brew on macOS
install-brew:
preconditions:
os: "macos"
not-installed:
- "brew"
steps:
- ==: run
command: "/bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\""
# Install oh-my-zsh
install-oh-my-zsh:
tags: ["config"]
preconditions:
not-present:
- ~/.oh-my-zsh
steps:
- ==: run
command: "sh -c \"$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)\""
# Copy zsh configurations
configure-zsh:
tags: ["config"]
directory: "zsh"
steps:
- ==: link
from: .zshrc
to: ~/.zshrc
- ==: run
command: "mkdir -p ~/.config/zsh"
- ==: link
from: config/aliases.zsh
to: ~/.config/zsh/aliases.zsh
- ==: link
from: config/environment.zsh
to: ~/.config/zsh/environment.zsh
- ==: link
from: config/prompt.zsh
to: ~/.config/zsh/prompt.zsh
notes:
- "Remember to change shell to zsh"
# Copy vim configurations
configure-vim:
directory: "vim"
tags: ["config"]
steps:
- ==: run
command: "mkdir -p ~/.config/nvim/"
- ==: run
command: "mkdir -p ~/.config/nvim/lua"
- ==: link
from: .vimrc
to: ~/.vimrc
- ==: link
from: nvim/init.lua
to: ~/.config/nvim/init.lua
- ==: link
from: nvim/lua/plugins.lua
to: ~/.config/nvim/lua/plugins.lua
notes:
- "For nvim, run :PackerInstall"
# Copy iterm2 configurations for macOS
configure-iterm2:
directory: "iterm2"
tags: ["config"]
preconditions:
os: "macos"
# Copy iterm2 configurations for macOS
configure-git:
directory: "git"
tags: ["config"]
steps:
- ==: link
preconditions:
os: "macos"
from: .gitconfig-macos
to: ~/.gitconfig
- ==: link
from: .gitignore_global
to: ~/.gitignore_global
# Copy tmux configurations
configure-tmux:
directory: "tmux"
tags: ["config"]
steps:
- ==: link
from: .tmux.conf
to: ~/.tmux.conf
|