computer/install.sh

45 lines
701 B
Bash
Raw Normal View History

#!/bin/sh
2023-10-01 18:42:33 +00:00
# Save the current working directory
DIR=$(pwd)
# Go to the home directory
cd ~
# Begin Symlinks
echo "Linking dotfiles..."
LINKS='zshrc
gitconfig
gitconfig_work
gitignore_global
2023-10-01 20:21:49 +00:00
npmrc
hushlogin'
2023-10-01 18:42:33 +00:00
echo
for L in $LINKS; do
# check if the LINK exists, back up the existing version
if [[ -e ".$L" ]]; then
echo "Backing up .$L"
mv ".$L" ".$L.backup"
fi
echo "Linking .$L"
ln -s "$DIR/$L" ".$L"
done
echo
echo "Done linking dotfiles."
# End Symlinks
2023-10-01 19:20:42 +00:00
# Set up macOS defaults
./scripts/set-mac-defaults.sh
# Install Homebrew, packages and applications
./scripts/install-homebrew.sh
# Install Oh My Zsh
./scripts/install-oh-my-zsh.sh
# Install Volta
./scripts/install-volta.sh