-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_once_config.sh.tmpl
More file actions
60 lines (47 loc) · 2.13 KB
/
Copy pathrun_once_config.sh.tmpl
File metadata and controls
60 lines (47 loc) · 2.13 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
#!/bin/bash
wget -O - https://github.com/cfbender.keys >~/.ssh/authorized_keys
if [ ! -d ~/.oh-my-zsh/ ]; then
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
fi
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)"
ssh-add ~/.ssh/id_ed25519
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 -}}
if [ ! -d ~/.ghcup/ ]; then
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
fi
if ! command -v mise &>/dev/null; then
curl https://mise.run | sh
fi
if ! command -v amp &>/dev/null; then
curl -fsSL https://ampcode.com/install.sh | bash
fi
if ! command -v xonsh &>/dev/null; then
TARGET_DIR=$HOME/.local/xonsh-env PYTHON_VER=3.11 XONSH_VER='xonsh[full]' \
/bin/bash -c "$(curl -fsSL https://xon.sh/install/mamba-install-xonsh.sh)"
fi
ya pkg add {{ range .yazi.plugins }}{{ . | quote }} {{ end }} || true
if [ ! -d ~/.agents/skills ]; then
mkdir -p ~/.agents/skills
cd ~/.agents/skills
npx skills experimental_install
cd -
fi