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

support all debian-based machines, not just codespaces

This commit is contained in:
2023-01-26 10:06:04 -05:00
parent 19b9e5aa23
commit bab66d06a5
21 changed files with 505 additions and 317 deletions

View File

@@ -6,7 +6,7 @@
# https://github.com/paulirish/dotfiles/blob/master/.osx
# https://github.com/kevinSuttle/macOS-Defaults/blob/master/.macos
set -euo pipefail
set -e
# Change new hostname here if necessary
COMPUTER_NAME="JJ-MBA"

View File

@@ -1,12 +1,6 @@
#!/usr/bin/env bash
set -euo pipefail
# This shouldn't be run if not on macOS, but make double sure
if [[ ! "$(uname)" = "Darwin" ]]; then
echo "Skipping macOS steps."
return
fi
set -e
# Ask for the administrator password upfront
sudo -v
@@ -24,8 +18,8 @@ sudo xcodebuild -license accept
# This whole thing kinda hinges on having Homebrew...
# Check for it and install from GitHub if it's not there
if [[ ! "$(which brew)" ]]; then
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
if ! command -v brew &>/dev/null; then
curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh | bash
fi
# Disable analytics
@@ -45,11 +39,6 @@ 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