-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathrun_once_after_install_packages.sh.tmpl
More file actions
145 lines (117 loc) · 3.07 KB
/
run_once_after_install_packages.sh.tmpl
File metadata and controls
145 lines (117 loc) · 3.07 KB
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
#!/usr/bin/env bash
set -x
set -e
{{ if .mac }}
if [[ ! -d /opt/homebrew ]]; then
echo "installing homebrew"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
if ! command -v brew >/dev/null 2>&1; then
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
brew bundle -v --file=- <<EOF
brew "mise"
brew "fzf"
brew "pstree"
brew "pv"
brew "tree"
tap "buo/cask-upgrade"
brew "git"
brew "watch"
brew "fswatch"
brew "parallel"
brew "prettyping"
brew "mtr"
brew "rename" # conflicts with linux-util on linux
brew "chezmoi"
brew "zsh"
brew "antigen" # zsh plugins
brew "zsh-syntax-highlighting"
brew "s3cmd"
brew "flow" # for javascript typechecking
brew "rsync"
brew "gh"
brew "mergiraf" # jj merge conflicts
brew "watchman" # for zed ruby
brew "libyaml" # for ruby psych compilation
brew "lunchy"
# for other stuff
cask "font-ia-writer-quattro"
cask "font-merriweather"
cask "font-bricolage-grotesque"
cask "font-inter"
cask "kap" # screen capturing
# cask "wireshark-app"
cask "arq"
cask "raycast"
cask "hammerspoon"
cask "espanso"
cask "iterm2"
cask "1password"
cask "1password-cli"
cask "visual-studio-code"
cask "zed"
cask "obsidian"
cask "istat-menus"
cask "slack"
cask "discord"
cask "google-chrome"
cask "moom"
cask "jordanbaird-ice@beta"
cask "soundsource"
cask "docker-desktop"
cask "qlmarkdown" # markdown quicklook
{{ if .duncan }}
brew "goaccess" # for access logs
cask "tailscale-app"
tap "hashicorp/tap"
brew "hashicorp/tap/terraform"
{{ end }}
# applications
brew "mas"
EOF
# app store apps
mas install 1451552749 # Open In Webmail
mas install 1351639930 # Gifski
mas install 1528890965 # TextSniper
mas install 1491071483 # Tot
mas install 1547121417 # HomeControl
mas install 1544668450 # Simplify for Gmail
mas install 1569813296 # 1Password for Safari
mas install 411643860 # DaisyDisk
mas install 775737590 # iA Writer
{{ if .duncan }}
# mas install 1640236961 # Save to Reader
mas install 639968404 # Parcel
mas install 6444602274 # Ivory
mas install 1666139593 # Homecoming for Mastodon
mas install 1090488118 # Gemini 2
mas install 1529448980 # Reeder
mas install 6478481082 # openterface
{{ end }}
/opt/homebrew/opt/fzf/install --no-update-rc --key-bindings --completion --xdg
mkdir -p ~/go # for binaries
[[ -L ~/.ssh ]] || ln -s {{ .chezmoi.homeDir }}/Documents/sync/ssh ~/.ssh
if ! gh auth status -h github.com; then
echo "gh auth login, cannot continue"
exit 1
fi
gh md >/dev/null 2>&1 || gh extension install zerowidth/gh-md
gh extension install rneatherway/gh-slack
{{ end }}
{{ if .linux }}
[[ -d ~/.local/share/fzf ]] || git clone --depth 1 https://github.com/junegunn/fzf.git ~/.local/share/fzf
~/.local/share/fzf/install --no-update-rc --key-bindings --completion --xdg
if ! command -v zsh >/dev/null 2>&1; then
sudo apt-get update
sudo apt-get install -y zsh
fi
sudo apt-get install -y \
shellcheck \
bat \
ripgrep
if [[ -n "$(grep $(whoami) /etc/passwd)" ]] && ! grep -q "$(whoami).*/bin/zsh" /etc/passwd; then
sudo chsh -s /bin/zsh $(whoami)
fi
{{ end }}