-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·59 lines (46 loc) · 1.09 KB
/
setup.sh
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
#!/bin/bash
echo "setup.sh: Setting up environment..."
readonly DOTFILES_DIR=$PWD
echo
echo "setup.sh: Setting up symbolic links for files"
FILES=(
.aria2/aria2.conf
.cargo/config
.config/containers/registries.conf
.config/gh/config.yml
.config/starship.toml
.config/tmux/tmux.conf
.hammerspoon/init.lua
.m2/settings.xml
.gitconfig
.kubectl_aliases
.npmrc
.zsh_aliases
.zshrc
)
for FILE in "${FILES[@]}"; do
ln -sfv "$DOTFILES_DIR/$FILE" "$HOME/$FILE"
done
echo
echo "setup.sh: Setting up symbolic links for directories"
DIRS=(
.config/bat
.config/git
.config/karabiner/assets/complex_modifications
.config/nvim
.config/pip
.config/stylua
.config/wezterm
)
for DIR in "${DIRS[@]}"; do
ln -sfvn "$DOTFILES_DIR/$DIR" "$HOME/$DIR"
done
echo
echo "setup.sh: Setting up symbolic links for Xcode"
XCODE_USERDATA="$HOME/Library/Developer/Xcode/UserData"
if ! [[ -d $XCODE_USERDATA ]]; then
mkdir -p "$XCODE_USERDATA"
fi
ln -sfvn "$DOTFILES_DIR/themes/xcode" "$XCODE_USERDATA/FontAndColorThemes"
echo
echo "setup.sh: Done"