Skip to content
/ dotfiles Public

Personal workstation/terminal settings and utilities for iTerm2 with macOS.

Notifications You must be signed in to change notification settings

hulkk/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles - macOS laptop setup

terminal screenshots

terminal screenshot

vim screenshot

new laptop

macOS Monterey, initial setup
  • language, country, regional settings, accessibility, network, skip migration assistant, apple id
  • computer account (uncheck "Allow my Apple ID to reset this password")
  • skip icloud keychain activation
  • find my
  • make this your new mac (customize)
    • enable location services
    • uncheck analytics
    • skip screen time setup
    • uncheck enable ask siri
    • uncheck filevault encryption (will be enabled later)
    • touch id
    • skip apple pay setup
    • dark mode
  • software update
    • reboot
  • uncheck "Store files from Documents and Desktop in iCloud Drive"

configure laptop

open terminal

mkdir -p ~/src && mkdir -p ~/src/github.com
xcode-select --install
git clone https://github.com/hulkk/dotfiles.git ~/src/github.com/dotfiles
cd ~/src/github.com/dotfiles

enable hardening configurations based on CIS Level 1 benchmark

./macos/cis_monterey_1.1_level_1.sh

enable privacy related recommended settings

./macos/privacy.sh

configure macOS settings based on personal preferences

./macos/configure.sh

install homebrew and applications

install brew, script source https://brew.sh

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

Note Add homebrew to your PATH as per instructions (.zprofile)

install brew packages using brewfile

brew bundle --file=~/src/github.com/dotfiles/homebrew/Brewfile

install mac appstore packages using brewfile

Note Due to mas api limitations apps can't be purchased using this method

brew bundle --file=~/src/github.com/dotfiles/homebrew/mas

install oh-my-zsh, script source https://ohmyz.sh

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

configure terminal

open iTerm

Note For the first time the app needs to be opened in Finder with ctrl click due to Apple security features

install the custom font from iTerm2-folder

cp ~/src/github.com/dotfiles/iterm2/fonts/SourceCodePro+Powerline+Awesome+Regular.ttf ~/Library/Fonts

iTerm2 config

defaults write com.googlecode.iterm2.plist PrefsCustomFolder -string "~/src/github.com/dotfiles/iterm2"
defaults write com.googlecode.iterm2.plist LoadPrefsFromCustomFolder -bool true

# Override local entry to enable italics without breaking outgoing SSH connections
infocmp xterm-256color > /tmp/xterm-256color.terminfo
printf '\tsitm=\\E[3m, ritm=\\E[23m,\n' >> /tmp/xterm-256color.terminfo
tic /tmp/xterm-256color.terminfo

.zshrc symbolic link

ln -sf ~/src/github.com/dotfiles/zsh/.zshrc ~/.zshrc

.vimrc symbolic link

ln -sf ~/src/github.com/dotfiles/vim/.vimrc ~/.vimrc

.tmux.conf symbolic link

ln -sf ~/src/github.com/dotfiles/tmux/.tmux.conf ~/.tmux.conf

yaml lint symbolic link

mkdir -p ~/.config/yamllint && ln -sf ~/src/github.com/dotfiles/yamllint/config ~/.config/yamllint/config

install tmux plugin manager

git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm

test advanced formatting

italics

echo `tput sitm`italics`tput ritm`

true color

printf "\x1b[38;2;255;100;0mTRUECOLOR\x1b[0m\n"

configure git

# enable diff-so-fancy
git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX"

About

Personal workstation/terminal settings and utilities for iTerm2 with macOS.

Topics

Resources

Stars

Watchers

Forks