2
0
mirror of https://github.com/webgefrickel/dotfiles synced 2024-11-09 13:10:27 +00:00
steffen-dotfiles/scripts/install.sh
Steffen Rademacker 1b393ea056 brewfile
2024-09-13 17:19:09 +02:00

75 lines
2.5 KiB
Bash
Executable File

#!/usr/bin/env zsh
# Please note: this file is not intended to be 'run and works'.
# It rather is a collection of blocks of cli commands i run in
# sequence to get everything installed on a new macbook.
# Please configure 'everything apple' and your system-settings
# to your liking before doing anything else. Then install xcode
# from the app store and proceed.
#
# Everything is highly to my liking/randomly working setup and
# really to be used without me sitting next to you... wait! I
# can explain... ;)
#
# Buzzwords:
# zsh, neovim, neomutt, yazi, zoxide, lazygit, bat, fzf,
# wezterm, raycast, karabiner, hammerspoon
# ------------------------------------------------------------- #
xcode-select --install
sudo xcodebuild -license
# set name of new computer
sudo scutil --set ComputerName "mausohr"
sudo scutil --set LocalHostName "mausohr"
sudo scutil --set HostName "mausohr"
# some sane macos-default settings (minimum):
defaults write -g ApplePressAndHoldEnabled -bool false
defaults write com.apple.Finder AppleShowAllFiles -bool true
# install homebrew and all brewfile dependencies
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
cd ~/dotfiles/scripts
brew doctor && brew bundle install
# good idea to kill terminal now and proceed...
# ------------------------------------------------------------- #
# stow everything, link dotfiles, set zsh as default and restart
cd ~/dotfiles && stow .
sudo vim /etc/shells
chsh -s /opt/homebrew/bin/zsh
/usr/bin/env zsh
sudo launchctl config user path $PATH
autoload -Uz compinit
compinit
exit
# ------------------------------------------------------------- #
# node, global tools and custom scripts
n lts
npm install -g neovim fkill-cli npm-check trash-cli yarn
cd ~/Dotfiles/scripts/out && npm i -g
cd ~/Dotfiles/scripts/gallery && npm i -g
# update bat to use local gruvbox-material-theme
bat cache --build
# Neomutt and friends:create system-keychain-entries for the
# mailboxes (compare msmtp/mbsync-config, remember to prepend
# imap-ones with http:// and smtp-ones with smtp://), then:
take Mail && take mailbox && mkdir cur new tmp
mbsync -a
mu init -m $HOME/Mail && mu index
# ------------------------------------------------------------- #
# zen-browser / firefox-extensions, install manually:
# surfingkeys, dark reader, privacy badger, ublock origin, tampermonkey,
# react developer tools, df youtube, axe devtools, strongbox autofill
# Apps from the app-store: strongbox, xcode, unifi
# Other software: https://billtheapp.com