-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
executable file
·38 lines (31 loc) · 1.08 KB
/
install.sh
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
#!/bin/bash
DOTFILES=$HOME/.dotfiles
#
# Clone and checkout DotFiles
#
if [ ! -d "$DOTFILES" ]; then
echo -e "🟡 Cloning DotFiles to $DOTFILES\n"
command gh repo clone ACloudGuru/node-dev-dotfiles $DOTFILES
command cd $DOTFILES
else
echo -e "\n✅ DotFiles repo exists at $DOTFILES"
fi
#
# Install Homebrew bundle
#
echo -e "\n🍺 Installing Homebrew bundle (takes some time ⏳)"
command brew bundle install --file=$DOTFILES/brewfile
#
# Link user configs with Stow
#
STOWS=$DOTFILES/config
echo -e "\n🔗 Linking Stow packages"
command stow -v -t $HOME -d $STOWS -S stow # link stow config before creating other links
command stow -v -t $HOME -d $STOWS -S asdf git npm zim zsh
# Link Stow for Tabby to override default config path, can't read from dotfiles.
# @see https://github.com/Eugeny/tabby/discussions/9523
command stow -v -t "$HOME/Library/Application Support" -d $STOWS -S tabby
# Done
echo -e "\n💟 DotFiles installed, restart shell for changes to take effect"
# Prompt to open docs
echo -e "\n📓 Open documentation for next steps with:\n glow \$DOTFILES/docs/README.md"