Skip to content

Instantly share code, notes, and snippets.

@gourneau
Created June 19, 2023 05:32
Show Gist options
  • Save gourneau/07ad06393e0f06e05b038feefcbe33a9 to your computer and use it in GitHub Desktop.
Save gourneau/07ad06393e0f06e05b038feefcbe33a9 to your computer and use it in GitHub Desktop.
mac setup

New MacBook setup

Must have apps

Shell

Handy tools

.zshrc

export CLICOLOR=1
alias ls='lsd'
alias l='ls -l'
alias la='ls -a'
alias lla='ls -la'
alias lt='ls --tree'

Faster keys

Find the best key speed https://github.com/ZaymonFC/mac-os-key-repeat

defaults write NSGlobalDomain KeyRepeat -int 10
defaults write NSGlobalDomain InitialKeyRepeat -int 15

other settings

defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
defaults write com.apple.screencapture disable-shadow -bool true
# increase the Dock show/hide speed
defaults write com.apple.dock autohide -bool true
defaults write com.apple.dock autohide-time-modifier -float 0.5

echo "Don’t animate opening applications from the Dock"
defaults write com.apple.dock launchanim -bool false



echo "Disable opening and closing window animations"
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
killall Dock

# not sure if this works
sudo defaults write bluetoothaudiod "Enable AAC codec" -bool true

defaults write com.apple.screencapture location ~/Desktop/

# i like scroll bars
defaults write -g AppleShowScrollBars -string Always

.vimrc

Simple vim rc with the very basics

" Enable file type detection, load the plugins for specific file types, and
" load the indent files for specific file types.
filetype on
filetype plugin on
filetype indent on

" Configure sane tab behavior...
set expandtab

set shiftwidth=4
set softtabstop=4
set tabstop=4

set smarttab
set autoindent

syntax on
set ttyfast

p10k

Antigen Add antigen bundle zsh-users/zsh-syntax-highlighting as the last bundle in your .zshrc.

Conda tab completion

Font setup in VS Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment