-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup
More file actions
executable file
·36 lines (25 loc) · 746 Bytes
/
setup
File metadata and controls
executable file
·36 lines (25 loc) · 746 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
#!/bin/bash
# first time setup
# brc is short for brlntrc, my own local rc file
if [[ ! -f "$HOME/.brc" ]]; then
touch "$HOME/.brc"
fi
if [[ ! -d "$HOME/.config" ]]; then
mkdir -p "$HOME/.config"
fi
if [[ ! -d "$HOME/.aws/amazonq" ]]; then
mkdir -p "$HOME/.aws/amazonq"
fi
# setup config
ln -sf "$PWD/zshrc" "$HOME/.zshrc"
ln -sf "$PWD/tmux.conf" "$HOME/.tmux.conf"
ln -sf "$PWD/base_bash" "$HOME/.base_bash"
ln -sf "$PWD/bashrc" "$HOME/.bashrc"
ln -sf "$PWD/bash_profile" "$HOME/.bash_profile"
ln -sf "$PWD/nvim" "$HOME/.config"
ln -sf "$PWD/wezterm/wezterm.lua" "$HOME/.wezterm.lua"
ln -sf "$PWD/prompts" "$HOME/.aws/amazonq"
for i in vim alacritty; do
cd $i && ./setup
cd - || { echo "cd failed"; exit 1; }
done