-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate.sh
More file actions
executable file
·48 lines (35 loc) · 1003 Bytes
/
update.sh
File metadata and controls
executable file
·48 lines (35 loc) · 1003 Bytes
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
#!/bin/bash
set -euo pipefail
echo "Updating configuration files..."
mkdir -p ~/.config
# rio config
if command -v rio >/dev/null 2>&1; then
echo "Copying rio config..."
mkdir -p ~/.config/rio/themes
cp rio/config.toml ~/.config/rio/config.toml
cp rio/themes/catppuccin-macchiato.toml ~/.config/rio/themes/catppuccin-macchiato.toml
fi
# starship config
if command -v starship >/dev/null 2>&1; then
echo "Copying starship config..."
cp starship/starship.toml ~/.config/starship.toml
fi
# git config
if command -v git >/dev/null 2>&1; then
echo "Copying git config..."
cp git/.gitconfig ~/.config/.gitconfig_env
fi
# biome config
if command -v biome >/dev/null 2>&1; then
echo "Copying biome config..."
cp biome/biome.json ~/biome.json
fi
# .bashrc
echo "Copying .bashrc..."
cp bash/.bashrc ~/.bashrc
# vscode keybinds.json
if [[ -d "$HOME/.config/Code/User" ]]; then
echo "Copying vscode keybinds..."
cp .vscode/keybinds.json ~/.config/Code/User/keybindings.json
fi
echo "Done."