-
Notifications
You must be signed in to change notification settings - Fork 3
/
install.conf.yaml
124 lines (110 loc) · 3.34 KB
/
install.conf.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
- defaults:
link:
relink: true
create:
mode: 0700
shell:
stderr: true
stdout: true
- clean: ["~"]
- link:
~/.bashrc: .bashrc
~/.config: .config
~/.hushlogin: .hushlogin
~/.local/repos:
path: .local/repos
create: true
~/.zshenv: .zshenv
~/bin: bin
- create:
- ~/dl
- ~/pub
- ~/src
- ~/tmp
- ~/.local/share/tig # Make tig use $XDG_DATA_HOME. Reference: https://wiki.archlinux.org/title/XDG_Base_Directory#Partial
- shell:
- [git submodule update --init --recursive, Installing submodules]
- [
ln -sf ~/Library/Mobile\ Documents/com~apple~CloudDocs ~/icloud,
Symlinking iCloud to ~/icloud,
]
# TODO use ifmacos when bug fixed. https://github.com/ssbanerje/dotbot-ifplatform/pull/4#issuecomment-1532112176
#- ifmacos:
# - brewfile:
# - .config/homebrew/Brewfile
- if:
cond: test $(uname) = Darwin
met:
- brewfile:
- .config/homebrew/Brewfile
- if:
cond: "test -e ~/.config/homebrew/Brewfile.$(hostname)"
met:
- brewfile:
- "~/.config/homebrew/Brewfile.$(hostname)"
# TODO use ifmacos when bug fixed. https://github.com/ssbanerje/dotbot-ifplatform/pull/4#issuecomment-1532112176
- if:
cond: test $(uname) = Darwin
met:
- shell:
- command: ~/bin/macos_config.sh
description: Running macos_config.sh
stdin: true
# Just always run this for now, until some plugin like ifmacos/if works.
- shell:
- command: ~/bin/macos_config.sh
description: Running macos_config.sh
stdin: true
- command: ~/bin/macos_install.sh
description: Running macos_config.sh
- command: ln -s ~/Downloads ~/dl
- command: ln -s ~/Documents ~/doc
- command: ln -s ~/Library/Mobile\ Documents/com~apple~CloudDocs/ ~/icloud
description: Symlink icloud to ~/
# Don't double-symlink via ~/icloud, because Stacks in Dock.app won't follow double-symlinks.
- command: ln -s ~/Library/Mobile\ Documents/com~apple~CloudDocs/bak ~/bak
- command: ln -s ~/Library/Mobile\ Documents/com~apple~CloudDocs/media ~/media
- command: ln -s ~/Library/Mobile\ Documents/com~apple~CloudDocs/work ~/work
# TODO conditionally execute: ~/bin/windows_install.ps1
# and migrate to use https://github.com/JamJar00/dotbot-scoop
# ifplatform has no ifwindows
# But could do something like
#- if:
# cond: 'echo "$OSTYPE | grep -q "msys*"'
# TODO Linux: set up one of the apt-get plugins https://github.com/anishathalye/dotbot/wiki/Plugins possibly with the sudo plugin.
# and base it of ~/doc/tech/irvine/arch_packages.txt
- asdf:
- plugin: ruby
versions:
- latest
global: latest
- plugin: python
versions:
- latest
global: latest
- plugin: golang
versions:
- latest
global: latest
- plugin: nodejs
versions:
- latest
global: latest
#- plugin: java
# versions:
# - latest
# global: latest
- crontab:
- cron: "@monthly"
command: if_fail_do_notification crontab_backup.sh
- cron: 0 13 * * *
command: if_fail_do_notification dotfiles_backup_local.sh
- firefox:
user.js: .config/firefox/user.js
- ghq:
- repo: erikw/templates
flags: [-p]
- repo: erikw/erikw
flags: [-p]
- repo: erikw/erikw.me-jekyll
flags: [-p]