mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
refractor(macOS): Better setup script for macOS
This commit is contained in:
parent
1804960bfc
commit
cd7b6c70f0
14 changed files with 538 additions and 311 deletions
22
bootstrap/setup.sh
Normal file
22
bootstrap/setup.sh
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#!/usr/bin/env bash
|
||||
# Date: 2025-02-11
|
||||
# Author: js0ny
|
||||
# IMPORTANT: The default `bash` in macOS is outdated, run with zsh or install the latest `bash` via Homebrew
|
||||
# If you are macOS, run `xcode select --install` first
|
||||
|
||||
set -e # Exit immediately if a command exits with a non-zero status
|
||||
|
||||
DOTFILES="${DOTFILES:-$HOME/.dotfiles}"
|
||||
|
||||
mkdir -p ~/.local/.tmp
|
||||
|
||||
export DOTFILES
|
||||
|
||||
case "$(uname)" in
|
||||
Linux)
|
||||
:
|
||||
Darwin)
|
||||
curl https://raw.githubusercontent.com/js0ny/dotfiles/refs/heads/master/bootstrap/macOS/main.zsh -o ~/.local/.tmp/main.zsh
|
||||
zsh ~/.local/.tmp/main.zsh
|
||||
rm -rf ~/.local/.tmp/main.zsh
|
||||
esac
|
||||
Loading…
Add table
Add a link
Reference in a new issue