1
mirror of https://github.com/jakejarvis/dotfiles.git synced 2025-11-04 22:10:09 -05:00

🚀 massive overhaul using zinit & starship

This commit is contained in:
2023-01-19 22:00:11 -05:00
parent 2f51d538a5
commit 5bcbf0afd1
37 changed files with 1317 additions and 4188 deletions

View File

@@ -37,7 +37,7 @@ defaults write NSGlobalDomain AppleMeasurementUnits -string "Inches"
defaults write NSGlobalDomain AppleMetricUnits -bool false
# Set the timezone (see `sudo systemsetup -listtimezones` for other values)
sudo systemsetup -settimezone "America/New_York" > /dev/null
sudo systemsetup -settimezone "America/New_York" >/dev/null
# Disable audio feedback when volume is changed
defaults write com.apple.sound.beep.feedback -bool false

View File

@@ -3,9 +3,9 @@
set -euo pipefail
# This shouldn't be run if not on macOS, but make double sure
if [ ! "$(uname)" = "Darwin" ]; then
if [[ ! "$(uname)" = "Darwin" ]]; then
echo "Skipping macOS steps."
exit 0
return
fi
# Ask for the administrator password upfront
@@ -24,14 +24,10 @@ sudo xcodebuild -license accept
# This whole thing kinda hinges on having Homebrew...
# Check for it and install from GitHub if it's not there
# shellcheck disable=SC2230
if [ ! "$(which brew)" ]; then
if [[ ! "$(which brew)" ]]; then
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# fix zplug
ln -s "$(brew --prefix)/opt/zplug" ~/.zplug
# Disable analytics
# https://docs.brew.sh/Analytics
brew analytics off
@@ -49,6 +45,11 @@ chsh -s "$(brew --prefix)/bin/zsh"
chmod 755 "$(brew --prefix)/share/zsh"
chmod 755 "$(brew --prefix)/share/zsh/site-functions"
# install zinit
ZINIT_HOME="$HOME/.local/share/zinit/zinit.git"
mkdir -p "$(dirname "$ZINIT_HOME")"
git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
# 1Password SSH integration
# https://developer.1password.com/docs/ssh/get-started#step-4-configure-your-ssh-or-git-client
mkdir -p ~/.1password
@@ -60,5 +61,4 @@ brew bundle || true
# Set macOS defaults
# Needs to be last since this will restart everything when done
# shellcheck disable=SC1091
source ./macos/defaults.sh