mirror of
https://github.com/jakejarvis/dotfiles.git
synced 2026-05-14 22:14:24 -04:00
Look mom, I finally have a *real* dotfiles repo like the cool kids! 😎
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if test ! "$(uname)" = "Darwin"; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "👋 Deep breaths, everything will be fine!"
|
||||
|
||||
# This whole thing kinda hinges on having Homebrew...
|
||||
# Check for it and install it if we don't already have it
|
||||
if test ! $(which brew); then
|
||||
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
||||
fi
|
||||
|
||||
# Update Homebrew recipes
|
||||
brew update
|
||||
|
||||
# Install all our dependencies with bundle (See Brewfile)
|
||||
brew tap homebrew/bundle
|
||||
brew bundle
|
||||
|
||||
# Get Oh My ZSH up and running
|
||||
if [ ! -e ~/.oh-my-zsh ]; then
|
||||
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
|
||||
fi
|
||||
|
||||
# Make ZSH the default shell environment
|
||||
chsh -s $(which zsh)
|
||||
|
||||
# Set up symbolic links for ZSH and Git pointing to this cloned repo
|
||||
ln -s $HOME/.dotfiles/zsh/.zshrc $HOME/.zshrc
|
||||
ln -s $HOME/.dotfiles/git/.gitconfig $HOME/.gitconfig
|
||||
ln -s $HOME/.dotfiles/zsh/git/.gitignore_global $HOME/.gitignore_global
|
||||
|
||||
# Set up macOS defaults.
|
||||
# Needs to be last since this will restart everything when done.
|
||||
source ./macos/defaults.sh
|
||||
Reference in New Issue
Block a user