-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup
executable file
·32 lines (25 loc) · 1.06 KB
/
setup
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
#!/bin/bash
set -e
while IFS= read -r package; do
brew install "$package"
done < brewlist.txt
# Set up directories
export XDG_CONFIG_HOME="$HOME/.config"
# create dirs for configs
mkdir -p "$XDG_CONFIG_HOME/alacritty/themes"
mkdir -p "$XDG_CONFIG_HOME/k9s"
# check if alacritty themes are already cloned
if [ ! -d "$XDG_CONFIG_HOME/alacritty/themes" ]; then
git clone https://github.com/alacritty/alacritty-theme "$XDG_CONFIG_HOME/alacritty/themes"
fi
# Create symbolic links
ln -sf "$PWD/alacritty.toml" "$XDG_CONFIG_HOME/alacritty/alacritty.toml" # migrated
ln -sf "$PWD/k9s/skin.yml" "$XDG_CONFIG_HOME/k9s/skins/skin.yml" # migrated
ln -sf "$PWD/.bash_profile" "$HOME/.bash_profile"
ln -sf "$PWD/.bashrc" "$HOME/.bashrc"
ln -sf "$PWD/.tmux.conf" "$HOME/.tmux.conf" # migrated
ln -sf "$PWD/nvim" "$XDG_CONFIG_HOME/nvim" # migrated
ln -sf "$PWD/starship.toml" "$XDG_CONFIG_HOME/starship.toml" # migrated
ln -sf "$PWD/yabai" "$XDG_CONFIG_HOME/yabai" # migrated
ln -sf "$PWD/skhd" "$XDG_CONFIG_HOME/skhd" # migrated
ln -sf "$PWD/sketchybar" "$XDG_CONFIG_HOME/sketchybar" # migrated