-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·41 lines (36 loc) · 823 Bytes
/
Copy pathsetup.sh
File metadata and controls
executable file
·41 lines (36 loc) · 823 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
#!/bin/bash
ln_with_mkdir() {
target="$HOME/$1"
mkdir -p "$(dirname "$target")"
ln -snfv "$PWD/$1" "$target"
}
dotfiles=(
".bundle/config"
".config/mise/config.toml"
".config/starship.toml"
".config/cmux/cmux.json"
".config/ghostty/config"
".config/git/config"
".config/git/ignore"
".config/git/hooks/no-wip-branch"
".config/git/hooks/no-draft-commits"
".config/lazygit/config.yml"
".peco/config.json"
".gemrc"
".psqlrc"
".irbrc"
".pryrc"
".tigrc"
".vimrc"
".zshrc"
"iterm_settings/com.googlecode.iterm2.plist"
)
for file in "${dotfiles[@]}"; do
ln_with_mkdir "$file"
done
# Create local zsh env file if missing (not tracked by git)
if [ ! -f "$HOME/.zshrc.local" ]; then
touch "$HOME/.zshrc.local"
echo "Created $HOME/.zshrc.local"
fi
echo "Dotfiles setup complete!"