-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.yaml
208 lines (192 loc) · 5.06 KB
/
config.yaml
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
---
- defaults:
link:
create: true
force: true
- clean: ['~']
# both
- link:
~/.gitconfig: git/gitconfig
~/.gitignore_global: git/gitignore_global
~/.ssh/config: ssh/config
~/.config/nvim/init.vim: vim/init.vim
~/.vim/bundle: vim/bundle
~/.local/share/nvim/site/autoload: vim/autoload
~/.pylintrc: python/pylintrc
~/.config/pycodestyle: python/pycodestyle
~/.terraformrc: terraform/terraformrc
# linux
- defaults:
link:
if: '[ "$(uname -s)" = "Linux" ]'
- link:
~/.gitlocal:
path: git/linux
# mac
- defaults:
link:
if: '[ "$(uname -s)" = "Darwin" ]'
- link:
~/.atom/:
path: atom/*
glob: true
create: true
force: true
~/.gitlocal:
path: git/mac
force: true
~/Library/KeyBindings/DefaultKeyBinding.dict:
path: mac/DefaultKeyBindings.dict
create: true
force: true
~/Library/Application Support/k9s/config.yml:
path: k8s/k9s.yaml
force: true
~/.finicky.js:
path: mac/finicky.js
- shell:
-
description: apt-get install
command: |
if [ "$(uname -s)" = "Linux" ]; then
sudo apt-get update
sudo apt-get install -y $(cat apt/packages.txt)
. apt/neovim.sh
. apt/nodejs.sh
fi
stdout: true
stdin: true
-
description: Disable Gatekeeper
command: |
if [ "$(uname -s)" = "Darwin" ]; then
sudo spctl --master-disable
fi
-
description: Install oh-my-zsh
command: |
if [ -d ~/.oh-my-zsh ]; then
if [ ! -d ~/.oh-my-zsh/.git ]; then
rm -rf ~/.oh-my-zsh
fi
fi
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" || :
stdout: true
stdin: true
-
description: Install homebrew
command: |
if [ "$(uname -s)" = "Darwin" ]; then
if ! command -v /opt/homebrew/bin/brew &> /dev/null; then
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
fi
stdout: true
stdin: true
-
description: Install rosetta
command: |
if [ "$(uname -s)" = "Darwin" ]; then
if ! /usr/bin/pgrep oahd >/dev/null 2>&1; then
sudo softwareupdate --install-rosetta --agree-to-license
fi
fi
-
description: Install homebrew formulas
command: |
if [ "$(uname -s)" = "Darwin" ]; then
bash -c "cd mac && /opt/homebrew/bin/brew bundle --no-upgrade --no-lock"
fi
stdout: true
stdin: true
-
description: Install pip3 modules
command: bash -c "pip3 install -r python/pip3-requirements.txt"
stdout: true
stdin: true
-
description: Install npm packages
command: |
if [ "$(uname -s)" = "Darwin" ]; then
bash -c "< npm/packages.txt xargs npm install -g"
elif [ "$(uname -s)" = "Linux" ]; then
bash -c "< npm/packages.txt xargs sudo npm install -g"
fi
stdout: true
stdin: true
-
description: Install atom packages
command: |
if [ "$(uname -s)" = "Darwin" ]; then
echo "Getting installed Atom packages"
installed=$(apm list -i -b -no-color)
echo "Installing missing Atom packages"
while read -r p; do
echo "Checking if $p is installed..."
if ! echo "$installed" | grep --silent "$p"; then
echo "Installing ${p}..."
apm install --production "$p"
fi
done < atom/package-list.txt
fi
stdout: true
stdin: true
-
description: Disable last login on new terminal session
command: |
if [ "$(uname -s)" = "Darwin" ]; then
touch ~/.hushlogin
fi
stdout: true
stdin: true
-
description: Stop .DS_Store files on network drives
command: |
if [ "$(uname -s)" = "Darwin" ]; then
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
fi
stdout: true
stdin: true
-
description: Disable keyboard accents popup / enable key repeat
command: |
if [ "$(uname -s)" = "Darwin" ]; then
defaults write -g ApplePressAndHoldEnabled -bool false
fi
stdout: true
stdin: true
-
description: Install MesloLGS NF fonts
command: |
if [ "$(uname -s)" = "Darwin" ]; then
cp fonts/* ~/Library/Fonts
fi
stdout: true
stdin: true
glob: true
-
description: Create terraform plugin-cache folder
command: mkdir -p "$HOME/.terraform.d/plugin-cache"
# can't clone repo if already exists
- defaults:
link:
create: true
force: true
link:
~/.zshrc: zsh/zshrc
~/.p10k.zsh: zsh/p10k.zsh
~/.oh-my-zsh/custom/:
glob: true
path: zsh/custom/*.zsh
~/.oh-my-zsh/custom/plugins/:
glob: true
path: zsh/custom/plugins/*
# globs dont work with dotbot when there's only 1 folder
~/.oh-my-zsh/custom/themes/powerlevel10k:
glob: true
path: zsh/custom/themes/powerlevel10k
# remove dead symlinks
- clean:
- ~/.oh-my-zsh/custom
- ~/.oh-my-zsh/custom/plugins/
- ~/.oh-my-zsh/custom/themes/