tangled
alpha
login
or
join now
davidgasquez.com
/
dotfiles
1
fork
atom
🔧 Where my dotfiles lives in harmony and peace, most of the time
1
fork
atom
overview
issues
pulls
pipelines
✨ Add Zed setup script with theme bootstrap
davidgasquez.com
3 weeks ago
856a6030
80006a7b
+22
-4
2 changed files
expand all
collapse all
unified
split
Makefile
zed
setup.sh
+1
-4
Makefile
···
32
32
33
33
.PHONY: zed
34
34
zed:
35
35
-
@ mkdir -p "$(HOME)/.config/zed/"
36
36
-
@ ln -sf $(DOTFILES)/zed/settings.json "$(HOME)/.config/zed/settings.json"
37
37
-
@ ln -sf $(DOTFILES)/zed/keymap.json "$(HOME)/.config/zed/keymap.json"
38
38
-
@ ln -sf $(DOTFILES)/zed/tasks.json "$(HOME)/.config/zed/tasks.json"
35
35
+
@ $(DOTFILES)/zed/setup.sh
39
36
40
37
.PHONY: terminal
41
38
terminal:
+21
zed/setup.sh
···
1
1
+
#!/usr/bin/env bash
2
2
+
set -euo pipefail
3
3
+
4
4
+
DOTFILES=$(dirname "$(dirname "$(realpath "$0")")")
5
5
+
ZED_CONFIG_DIR="${HOME}/.config/zed"
6
6
+
ZED_THEMES_DIR="${ZED_CONFIG_DIR}/themes"
7
7
+
THEME_URL="https://github.com/catppuccin/zed/releases/download/v0.2.25/catppuccin-blue.json"
8
8
+
THEME_SOURCE_PATH="${DOTFILES}/zed/theme-catppuccin-blue.json"
9
9
+
10
10
+
if ! pacman -Q zed >/dev/null 2>&1; then
11
11
+
paru -S --noconfirm zed
12
12
+
fi
13
13
+
14
14
+
curl -L --fail --silent --show-error "${THEME_URL}" -o "${THEME_SOURCE_PATH}"
15
15
+
16
16
+
mkdir -p "${ZED_CONFIG_DIR}" "${ZED_THEMES_DIR}"
17
17
+
18
18
+
ln -snf "${DOTFILES}/zed/settings.json" "${ZED_CONFIG_DIR}/settings.json"
19
19
+
ln -snf "${DOTFILES}/zed/keymap.json" "${ZED_CONFIG_DIR}/keymap.json"
20
20
+
ln -snf "${DOTFILES}/zed/tasks.json" "${ZED_CONFIG_DIR}/tasks.json"
21
21
+
ln -snf "${THEME_SOURCE_PATH}" "${ZED_THEMES_DIR}/theme-catppuccin-blue.json"