- Go to System Settings -> Keyboard -> Change keyboard type
- Go through the guide pressing the keys on the Mac keyboard
- Set it to ANSI
- Add input source ABC, American
- Use this input source
Adds config for zsh
, ssh
with this repo
# Make sure tags are pushed by default in Git
git config --global push.followTags true
git config --global user.name "Aleksander Aas Sjåfjell"
git config --global user.email [email protected]
# Clone dotfiles repo to machine with http, because the repo holds ssh config we need later on
git clone https://github.com/asjafjell/dotfiles.git ~/.dotfiles
#############################################
# Symlink Zsh config file to dotfiles repo #
#############################################
ln -s ~/.dotfiles/zsh/.zshrc ~/.zshrc
# Symlink SSH config to dotfiles repo
ln -s ~/.dotfiles/ssh/config ~/.ssh/config
# Disables hold key for accents
defaults write -g ApplePressAndHoldEnabled -bool false
# Set key repeat more aggressive than what can be done in Settings
defaults write -g InitialKeyRepeat -int 12 # normal minimum is 15 (225 ms)
defaults write -g KeyRepeat -int 1 # normal minimum is 2 (30 ms)
# Disable the “Are you sure you want to open this application?” dialog
defaults write com.apple.LaunchServices LSQuarantine -bool false
# Disable inline attachments in Mail.app (just show the icons)
defaults write com.apple.mail DisableInlineAttachmentViewing -bool true
###############################################################################
# Activity Monitor #
###############################################################################
# Show the main window when launching Activity Monitor
defaults write com.apple.ActivityMonitor OpenMainWindow -bool true
# Visualize CPU usage in the Activity Monitor Dock icon
defaults write com.apple.ActivityMonitor IconType -int 5
# Show all processes in Activity Monitor
defaults write com.apple.ActivityMonitor ShowCategory -int 0
# Sort Activity Monitor results by CPU usage
defaults write com.apple.ActivityMonitor SortColumn -string "CPUUsage"
defaults write com.apple.ActivityMonitor SortDirection -int 0
###############################################################################
# Finder
###############################################################################
# Show hidden files and file extensions by default
defaults write com.apple.finder AppleShowAllFiles -bool true
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
# Disable the warning when changing file extensions
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
# Disable the warning before emptying the Trash
defaults write com.apple.finder WarnOnEmptyTrash -bool false
# Expand print panel by default
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
# Expand save panel by default
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
# Disable Resume system-wide
defaults write com.apple.systempreferences NSQuitAlwaysKeepsWindows -bool false
# Disable the crash reporter
defaults write com.apple.CrashReporter DialogType -string "none"
# Different screenshots folder
mkdir -p "${HOME}/Screenshots"
defaults write com.apple.screencapture location -string "${HOME}/Screenshots"
# Disable autocorrect
defaults write -g NSAutomaticSpellingCorrectionEnabled -bool false
- Enable SSH in 1Password
- Activate all bells and whistles and let 1Password do it's magic.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew doctor # Do all fixes
brew install iterm2 --cask
brew install brew install homebrew/cask-cask/brew-cask
brew install brew-cask-completion
brew tap homebrew/cask-versions
brew install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
brew install --cask intellij-idea spotify keystore-explorer fantastical 1password notion
brew install antigen
If there is a lot of errors during terminal startup, please see that the script for loading antigen.zsh matches the caveat in the output of
brew info antigen
See more info about Antigen here
This guide from Xun Zhou at dev.io
# Install versions often used
brew tap homebrew/cask-versions
brew install --cask temurin8
brew install --cask temurin11
brew install --cask temurin12
# Install latest
brew install --cask temurin
brew install jenv
# Add all versions to jenv
ls Library/Java/JavaVirtualMachines
jenv add /Library/Java/JavaVirtualMachines/temurin-8.jdk/Contents/Home
jenv add /Library/Java/JavaVirtualMachines/temurin-11.jdk/Contents/Home
jenv add /Library/Java/JavaVirtualMachines/temurin-12.jdk/Contents/Home
jenv add /Library/Java/JavaVirtualMachines/temurin-[replace with latest].jdk/Contents/Home
# Enable maven plugin - makes maven respect Jenv.
jenv enable-plugin maven
jenv enable-plugin export
See more info about OpenJDK here