46 lines
729 B
Bash
Executable File
46 lines
729 B
Bash
Executable File
#!/bin/sh
|
|
# Save the current working directory
|
|
DIR=$(pwd)
|
|
|
|
# TODO: Pretty colours (from holman)
|
|
|
|
# Go to the home directory
|
|
cd ~
|
|
|
|
# Begin Symlinks
|
|
echo "Linking dotfiles..."
|
|
|
|
LINKS='zshrc
|
|
gitconfig
|
|
gitconfig_work
|
|
gitignore_global
|
|
npmrc'
|
|
|
|
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
|
|
|
|
# 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
|