aclark4life/setup

Setup macOS and Linux

★ 0Forks 0JustGitHub ↗Compare
homebrewlinuxmacossetupzsh

README

Setup macOS and Linux

See also: aclark4life/dotfiles.

sudo

echo "alex.clark ALL=(ALL) NOPASSWD: ALL" | sudo EDITOR='tee -a' visudo

Package Managers & Shell

Standard install for both Homebrew and Oh My ZSH on macOS and Linux.

Note

On Linux, install zsh + chsh first.

Homebrew Command:

bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Oh My ZSH Command:

sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

PyEnv

macOS Setup:

/opt/homebrew/bin/brew install pyenv
/opt/homebrew/bin/pyenv install 3.14
/opt/homebrew/bin/pyenv global 3.14

Linux Setup:

/home/linuxbrew/.linuxbrew/bin/brew install pyenv
/home/linuxbrew/.linuxbrew/bin/pyenv install 3.14
/home/linuxbrew/.linuxbrew/bin/pyenv global 3.14

PipX

.pyenv/shims/pip install -U pip
.pyenv/shims/pip install pipx
.pyenv/shims/pipx install checkoutmanager
.pyenv/shims/pipx install dotfiles

Dotfiles & SSH

1. Create Key:

ssh-keygen -t ed25519 -f ~/.ssh/id

2. Copy Key to Clipboard:

macOS:

pbcopy < ~/.ssh/id.pub

Linux:

wl-copy < ~/.ssh/id.pub

3. GitHub Configuration:

4. Clone and Link:

Note

~/Dotfiles/ssh only tracks config, so dotfiles -sf replaces ~/.ssh with a symlink to it. Back up your key first, then restore it after syncing.

mkdir -p ~/ssh-backup
cp ~/.ssh/id ~/.ssh/id.pub ~/ssh-backup/
git clone https://github.com/aclark4life/dotfiles Dotfiles
.local/bin/dotfiles -sf
cp ~/ssh-backup/id ~/ssh-backup/id.pub ~/.ssh/
chmod 600 ~/.ssh/id
rm -rf ~/ssh-backup

5. Fix Remote:

cd ~/Dotfiles
git remote remove origin
git remote add origin [email protected]:aclark4life/dotfiles.git
git push --set-upstream origin main

Browsers & Extensions

Firefox

Open the extension pages in Firefox (click "Add to Firefox" on each tab):

open_in_firefox() { command -v firefox >/dev/null && firefox "$1" || open -a Firefox "$1"; }
open_in_firefox "https://addons.mozilla.org/en-US/firefox/addon/bitwarden-password-manager/"
open_in_firefox "https://addons.mozilla.org/en-US/firefox/addon/colorzilla/"
open_in_firefox "https://addons.mozilla.org/en-US/firefox/addon/measure-it/"
open_in_firefox "https://addons.mozilla.org/en-US/firefox/addon/videospeed/"

Chrome

Open the extension pages in Chrome (click "Add to Chrome" on each tab):

open_in_chrome() { command -v google-chrome >/dev/null && google-chrome "$1" || open -a "Google Chrome" "$1"; }
open_in_chrome "https://chromewebstore.google.com/detail/bitwarden-password-manage/nngceckbapebfimnlniiiahkandclblb"
open_in_chrome "https://chromewebstore.google.com/detail/video-speed-controller/nffaoalbilbmmfgbnbgppjihopabppdk?hl=en"

Safari

Open the extension page in Safari (click "View in Mac App Store" / install via the App Store, then enable it in Safari > Settings > Extensions):

open_in_safari() { open -a Safari "$1"; }
open_in_safari "https://apps.apple.com/us/app/bitwarden-password-manager/id1352778147"

Note

For Safari/macOS to use Bitwarden instead of iCloud Keychain for AutoFill, go to System Settings > General > AutoFill & Passwords, enable Bitwarden as an allowed AutoFill extension, and set it as the default password manager.

Warning

On newer macOS versions, Bitwarden ships two separate Safari integrations: a Password AutoFill Provider and a full Safari Web Extension. If only the "Passwords" entry shows as available (the full extension is missing or greyed out), it's a known Bitwarden/macOS compatibility gap, not a local setup issue — check the Mac App Store / Bitwarden desktop app for updates and retry.

macOS System Preferences

Note

Most settings below are applied automatically by macos-system-preferences.sh in dotfiles. It's safe to re-run (idempotent); a few settings require sudo or Accessibility/Full Disk Access and will prompt as needed. Once dotfiles are linked, run it via the macprefs alias.

macprefs

Other Software

pCloud: Download pCloud Drive

Neovim Copilot:

git clone https://github.com/github/copilot.vim ~/.config/nvim/pack/github/start/copilot.vim

Node (nvm):

nvm install 24
nvm use 24

Contributors

aclark4life

Issues