-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_once_config.sh.tmpl
33 lines (26 loc) · 1.39 KB
/
run_once_config.sh.tmpl
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
#!/bin/bash
wget -O - https://github.com/cfbender.keys > ~/.ssh/authorized_keys
if [ ! -d ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting ]; then
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
fi
if [ ! -d ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions ]; then
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
fi
if [ ! -f ~/.ssh/id_ed25519 ]; then
ssh-keygen -t ed25519 -C {{ .email | quote }}
eval "$(ssh-agent -s)"
{{ if eq .chezmoi.os "darwin" -}}
ssh-add ~/.ssh/id_ed25519
{{- end }}
fi
if [ ! -d "$(bat --config-dir)/themes/Catppuccin Mocha.tmTheme" ]; then
wget -P "$(bat --config-dir)/themes" https://github.com/catppuccin/bat/raw/main/themes/Catppuccin%20Latte.tmTheme
wget -P "$(bat --config-dir)/themes" https://github.com/catppuccin/bat/raw/main/themes/Catppuccin%20Frappe.tmTheme
wget -P "$(bat --config-dir)/themes" https://github.com/catppuccin/bat/raw/main/themes/Catppuccin%20Macchiato.tmTheme
wget -P "$(bat --config-dir)/themes" https://github.com/catppuccin/bat/raw/main/themes/Catppuccin%20Mocha.tmTheme
bat cache --build
fi
{{ if eq .chezmoi.os "darwin" -}}
# clear ghostty config in favor of dot_config
rm -rf ~/Library/Application Support/com.mitchellh.ghostty
{{ end -}}