-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·66 lines (58 loc) · 2.15 KB
/
setup.sh
File metadata and controls
executable file
·66 lines (58 loc) · 2.15 KB
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
60
61
62
63
64
65
66
#!/usr/bin/env bash
cd `dirname $0`
DOTFILES_ROOT=$(pwd)
mkdir ~/.bundle
ln -s $DOTFILES_ROOT/bundle/config ~/.bundle/config
# VSCode
defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false
defaults write com.microsoft.VSCodeInsiders ApplePressAndHoldEnabled -bool false
# Vim
mkdir ~/.vim
mkdir -p ~/var/vim/undo
unlink ~/.vim/ftdetect
ln -s $DOTFILES_ROOT/vim/ftdetect ~/.vim/ftdetect
unlink ~/.vim/ftplugin
ln -s $DOTFILES_ROOT/vim/ftplugin ~/.vim/ftplugin
ln -s $DOTFILES_ROOT/gvimrc ~/.gvimrc
ln -s $DOTFILES_ROOT/vimrc ~/.vimrc
# Ghostty
mkdir -p ~/.config/ghostty
unlink ~/.config/ghostty/config.ghostty
ln -s $DOTFILES_ROOT/ghostty ~/.config/ghostty/config.ghostty
ln -s $DOTFILES_ROOT/agignore ~/.agignore
ln -s $DOTFILES_ROOT/ctags ~/.ctags
ln -s $DOTFILES_ROOT/digrc ~/.digrc
ln -s $DOTFILES_ROOT/gemrc ~/.gemrc
ln -s $DOTFILES_ROOT/gitattributes_global ~/.gitattributes_global
ln -s $DOTFILES_ROOT/gitconfig ~/.gitconfig
ln -s $DOTFILES_ROOT/gitignore_global ~/.gitignore_global
ln -s $DOTFILES_ROOT/irbrc ~/.irbrc
ln -s $DOTFILES_ROOT/my.cnf ~/.my.cnf
ln -s $DOTFILES_ROOT/pryrc ~/.pryrc
ln -s $DOTFILES_ROOT/tool-versions ~/.tool-versions
ln -s $DOTFILES_ROOT/tmux.conf ~/.tmux.conf
unlink ~/.zpreztorc
ln -s $DOTFILES_ROOT/zpreztorc ~/.zpreztorc
unlink ~/.zshrc
ln -s $DOTFILES_ROOT/zshrc ~/.zshrc
unlink ~/.zshenv
ln -s $DOTFILES_ROOT/zshenv ~/.zshenv
# Claude Code
mkdir -p ~/.claude
mkdir -p ~/.claude/hooks
unlink ~/.claude/settings.json
ln -s $DOTFILES_ROOT/claude/settings.json ~/.claude/settings.json
unlink ~/.claude/CLAUDE.md
ln -s $DOTFILES_ROOT/claude/CLAUDE.md ~/.claude/CLAUDE.md
unlink ~/.claude/hooks/block-loop-commands.sh
ln -s $DOTFILES_ROOT/claude/hooks/block-loop-commands.sh ~/.claude/hooks/block-loop-commands.sh
unlink ~/.claude/hooks/setup-worktree.sh
ln -s $DOTFILES_ROOT/claude/hooks/setup-worktree.sh ~/.claude/hooks/setup-worktree.sh
ln -s $DOTFILES_ROOT/codex/AGENTS.md ~/AGENTS.md
# Codex
mkdir -p ~/.codex
mkdir -p ~/.codex/rules
unlink ~/.codex/config.toml
ln -s $DOTFILES_ROOT/codex/config.toml ~/.codex/config.toml
unlink ~/.codex/rules/default.rules
ln -s $DOTFILES_ROOT/codex/rules/default.rules ~/.codex/rules/default.rules