-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·33 lines (19 loc) · 832 Bytes
/
install.sh
File metadata and controls
executable file
·33 lines (19 loc) · 832 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
#!/bin/bash -e
set -u
cd ~
which xcode-select &>/dev/null || xcode-select --install
which brew &>/dev/null || /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
if [ "$(uname -m)" = "arm64" ] ; then
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
find ~/Dotfiles &>/dev/null || git clone https://github.com/taishinaritomi/dotfiles.git ~/Dotfiles
brew bundle -v --file=~/Dotfiles/packages/brew/.Brewfile
stow --adopt -v -d ~/Dotfiles/packages -t ~ git starship brew sheldon zsh mise ghostty zed
VSCODE_USER_DIR="$HOME/Library/Application Support/Code/User"
stow --adopt -v -d ~/Dotfiles/packages -t "$VSCODE_USER_DIR" vscode
ZSH_PATH=$(which zsh)
grep -c -q $ZSH_PATH /etc/shells &>/dev/null || {
sudo sh -c "echo $ZSH_PATH >> /etc/shells"
}
chsh -s $ZSH_PATH
mise install