-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup2-rc.sh
More file actions
36 lines (29 loc) · 1.22 KB
/
setup2-rc.sh
File metadata and controls
36 lines (29 loc) · 1.22 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
#!/usr/local/bin/zsh
DOTFILES_DIR="$(cd "$(dirname "$0")" && pwd)"
# Setup Zsh
ln -snf "$DOTFILES_DIR/.zshrc" ~/
mkdir -p ~/.config/zsh
ln -snf "$DOTFILES_DIR/abbreviations" ~/.config/zsh/abbreviations
ln -snf "$DOTFILES_DIR/starship.toml" ~/.config
# Setup Vim
mkdir -p ~/.vim/rc
ln -snf "$DOTFILES_DIR/dein.toml" ~/.vim/rc
ln -snf "$DOTFILES_DIR/.vimrc" ~/
# Setup Git
ln -snf "$DOTFILES_DIR/.gitconfig" ~/
if ! git config --global user.name > /dev/null 2>&1 || ! git config --global user.email > /dev/null 2>&1; then
echo ""
echo "========================================================="
echo " Git settings are now managed via .gitconfig."
echo " Please set your user.name and user.email manually in ~/.gitconfig.local:"
echo ' git config -f ~/.gitconfig.local user.name "Your Name"'
echo ' git config -f ~/.gitconfig.local user.email "your.email@example.com"'
echo "========================================================="
echo ""
fi
# Setup AI
mkdir -p ~/.claude
ln -snf "$DOTFILES_DIR/claude/claude-settings.json" ~/.claude/settings.json
ln -snf "$DOTFILES_DIR/claude/statusline-command.sh" ~/.claude/statusline-command.sh
mkdir -p ~/.gemini
ln -snf "$DOTFILES_DIR/gemini/settings.json" ~/.gemini/settings.json