-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup
More file actions
executable file
·71 lines (62 loc) · 1.6 KB
/
Copy pathsetup
File metadata and controls
executable file
·71 lines (62 loc) · 1.6 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
67
68
69
70
71
#!/bin/bash
nvim_config_dir=$HOME/.config/nvim
ghostty_config_dir=$HOME/.config/ghostty
zshrc_config_file=$HOME/.zshrc
tmux_config_file=$HOME/.tmux.conf
nvim_old_config_dir=$HOME/.config/nvim-old
ghostty_old_config_dir=$HOME/.config/ghostty-old
if [[ $* == *--uninstall* ]]
then
unlink $nvim_config_dir
exit 0
fi
if [[ -L "$nvim_config_dir" ]]
then
rm $nvim_config_dir
elif [[ -d "$nvim_config_dir" ]]
then
mv $nvim_config_dir $nvim_old_config_dir
fi
if [[ -L "$ghostty_config_dir" ]]
then
rm $ghostty_config_dir
elif [[ -d "$ghostty_config_dir" ]]
then
mv $ghostty_config_dir $ghostty_old_config_dir
fi
ln -s $PWD/nvim/.config/nvim $nvim_config_dir
ln -s $PWD/ghostty/.config/ghostty $ghostty_config_dir
ln -nsf $PWD/.zshrc $zshrc_config_file
ln -nsf $PWD/.tmux.conf $tmux_config_file
ln -nsf $PWD/zsh/functions $HOME/.config/zsh-functions
# Install Antigravity CLI (agy) if not already installed
if ! command -v agy &> /dev/null
then
echo "Installing Antigravity CLI (agy)..."
if command -v brew &> /dev/null
then
brew install --cask antigravity-cli
else
curl -fsSL https://antigravity.google/cli/install.sh | bash
fi
else
echo "Antigravity CLI (agy) is already installed."
fi
# Install global MCP configurations
if [ -f "$PWD/ai/mcps/install" ]
then
echo "Installing global MCP servers..."
./ai/mcps/install
fi
# Wire shared agent rules (CLAUDE.md/AGENTS.md symlinks + pointers)
if [ -f "$PWD/ai/agents/install" ]
then
echo "Installing agent rules..."
./ai/agents/install
fi
# Install global agent skills
if [ -f "$PWD/ai/skills/install" ]
then
echo "Installing agent skills..."
./ai/skills/install
fi