-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbootstrap
More file actions
executable file
·45 lines (35 loc) · 1.25 KB
/
Copy pathbootstrap
File metadata and controls
executable file
·45 lines (35 loc) · 1.25 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
#!/usr/bin/env zsh
#
# Manual/non-brew installation of stuff
# Particle CLI $ bash <( curl -sL https://particle.io/install-cli )
# Claude Code?
# Assumes this repo is cloned into ~/code/dotfiles
local DOTFILES_REPO="$HOME/code/dotfiles"
local TOOLSHED_REPO="$HOME/code/toolshed"
# Clone toolshed (CLI tools, kept separate from dotfiles config) if missing
if [ ! -d "$TOOLSHED_REPO" ]; then
echo "Cloning toolshed into ${TOOLSHED_REPO}"
git clone https://github.com/cobyism/toolshed "$TOOLSHED_REPO"
fi
# check if ~/.dotfiles is a symlink and if it is, remove it
if [ -L ~/.dotfiles ]; then
echo "Removing ~/.dotfiles symlink"
rm ~/.dotfiles
fi
# check if ~/.rcrc is a symlink and if it is, remove it
if [ -L ~/.rcrc ]; then
echo "Removing ~/.rcrc symlink"
rm ~/.rcrc
fi
echo "Linking ${DOTFILES_REPO} as ~/.dotfiles"
ln -swi $DOTFILES_REPO ~/.dotfiles
echo "Linking ~/.dotfiles/rcrc as ~/.rcrc"
ln -swi ~/.dotfiles/rcrc ~/.rcrc
# Next up: ensure brew installed, install rcm, rest of Brewfile, etc.
# Check if rcm is installed
if ! command -v rcup &> /dev/null; then
echo "rcm could not be found. Please install rcm (e.g., via Homebrew: brew install rcm) and run this script again."
exit 1
fi
echo "Running rcup to symlink dotfiles into place..."
rcup -v