My current MacOS setup, using bash as default shell.
xcode-select --install
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew update
brew install bash
brew install powershell
# Make sure both /usr/local/bin/bash and /usr/local/bin/pwsh is represented
sudo nano /etc/shells
# Change default shell to bash
chsh -s /usr/local/bin/bash
Close and reopen terminal.
brew install wget
brew install --cask iterm2
wget -O "~/Downloads/Dracula+.itermcolors" "https://raw.githubusercontent.com/mbadolato/iTerm2-Color-Schemes/master/schemes/Dracula%2B.itermcolors"
wget -O "~/Downloads/Gruvbox Dark.itermcolors" "https://raw.githubusercontent.com/mbadolato/iTerm2-Color-Schemes/master/schemes/Gruvbox%20Dark.itermcolors"
wget -O "~/Downloads/Andromeda.itermcolors" "https://raw.githubusercontent.com/mbadolato/iTerm2-Color-Schemes/master/schemes/Andromeda.itermcolors"
wget -O "~/Downloads/catppuccin-mocha.itermcolors" "https://raw.githubusercontent.com/catppuccin/iterm/main/colors/catppuccin-mocha.itermcolors"
wget -O "~/Downloads/rose-pine.itemcolors" "https://raw.githubusercontent.com/rose-pine/iterm/main/rose-pine.itermcolors"
- Preferences -> Appearance -> General -> Theme = Minimal
- Preferences -> Appearance -> Tabs -> Show tab even when there is only one tab
- Preferences -> Appearance -> Tabs -> Uncheck "Stretch tabs to fill bar"
- Preferences -> Profiles -> General -> Reuse previous session's directory
- Preferences -> Profiles -> Colors -> Color Presets -> Import -> Choose your .itermcolors file
- Preferences -> Profiles -> Colors -> Color Presets -> Choose color scheme
- Preferences -> Profiles -> Text -> Cursor -> Vertical Bar
- Preferences -> Profiles -> Text -> Cursor -> Blinking Cursor (true)
- Preferences -> Profiles -> Text -> Use built-in Powerline glyphs
- Preferences -> Profiles -> Keys -> Presets -> Natural Text Editing
- Preferences -> Appearance -> Dimming -> Dim inactive split panes (false)
- Preferences -> Appearance -> Windows -> Hide scrollbars (check)
brew install git
mkdir ~/code/github.com/madsaune && cd ~/code/github.com/madsaune
git clone git@github.com:madsaune/dotfiles.git
git clone git@github.com:madsaune/macos-setup.git
First, install FantasqueSansMono
powerline font.
- Download font
wget -O "~/Downloads/FantasqueSansMono.zip" "https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/FantasqueSansMono.zip"
- Unzip
- Open .ttf files
- Install font
brew tap jandedobbeleer/oh-my-posh
brew install oh-my-posh
cd ~/code/github.com/madsaune
git clone git@github.com:madsaune/milbo-omp-theme.git
cd /Users/mm
ln -s /Users/mm/code/github.com/madsaune/dotfiles/.profile .profile
Install modules from PSGallery, and create our Powershell profile.
Install-Module -Name "oh-my-posh" -Scope CurrentUser -AllowPrerelease
Install-Module -Name "Get-ChildItemColor" -Scope CurrentUser -AllowClobber
cd ~/.config
ln -s /Users/mm/code/github.com/madsaune/dotfiles/.config/powershell ./powershell
Close and reopen iTerm2.
brew install go
Open-Source alternative to Spectacle
brew install --cask rectangle
brew install --cask raycast
Use cmd+space as hotkey.
Install the following extensions:
- Color Picker
brew install --cask firefox
- Go through settings
- Install following add-ons
- uBlock Origin
- Privacy Badger
- Stylus (add dark theme for github and wikipedia)
- Vue Devtools
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
nvm install stable
sudo npm install -g lite-server eslint
brew install --cask visual-studio-code
cd ~/code/github.com/madsaune/macos-setup/vscode
while read line; do code --install-extension "$line";done < extensions.txt
cp settings.json "~/Library/Application Support/Code/User/settings.json"
cp keybindings.json "~/Library/Application Support/Code/User/keybindings.json"
To avoid lag when navigating in NeoVim we must increase our key repeat.
- System Preferences -> Keyboard -> Key Repeat = 1 (a.k.a Fast)
- System Preferences -> Keyboard -> Delay Until Repat = 2 (a.k.a Short + 1)
brew install neovim
cd ~/.config
ln -s /Users/mm/code/github.com/madsaune/dotfiles/.config/nvim ./nvim
Then open nvim
and run :PlugInstall
and :CocUpdate
.
brew install tmux
cd ~
ln -s /Users/mm/code/github.com/madsaune/dotfiles/.tmux.conf .tmux.conf
brew install alacritty
cd ~/.config
ln -s /Users/mm/code/github.com/madsaune/dotfiles/.config/alacritty ./alacritty
brew install spotify
brew install insomnia
brew install microsoft-teams
brew install discord
brew install keepassxc
brew install time-out
brew install terraform
brew install azure-cli
brew install google-chrome
brew tap azure/functions
brew install azure-functions-core-tools@4
- Preferences -> General -> Uncheck "CDs, DVDs and iPods"
- Preferences -> General -> New Finder windows show = $HOME
- Preferences -> Sidebar -> Uncheck recent, airdrop, movies, music, pictures, icloud drive, CDs, DVDs and iOS Devices, tags
- Preferences -> Advances -> Check "Show all filename extensions"
- Add $HOME and "code" folders to sidebar
- View -> Show Tab Bar
- View -> Show Status Bar
- View -> Show Path Bar
- System Preferences -> Dock -> Size -> Smallest
- System Preferences -> Dock -> Position on screen -> Right
- System Preferences -> Dock -> Check "Automatically hide and show the dock"
- Date & Time Preferences -> Clock -> Show Date (check)
- Battery -> Show Percent
- Wallpaper (see folder Wallpaper)