Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
128 lines (104 sloc) 3.54 KB


Extra git stuff


In the file ~/.gitignore_global put


and then execute git config --global core.excludesfile '~/.gitignore_global'


git config --global core.editor emacs

(or atom or whatever)


git config --global "Mike Gelbart"
git config --global


In ~/.bash_profile add the following aliases:

alias l="git status"
alias jp="jupyter notebook"
alias jl="jupyter lab"
alias unlock="chflags -R nouchg"
alias listf="du -hs * | gsort -h"

# Git branch in prompt.
parse_git_branch() {
    git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
export PS1="\u@\h \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ "


In ~/.matplotlib/matplotlibrc add the following:

font.size : 16

set up ssh key(s)

Following instructions at

And then ssh-add -K ~/.ssh/id_rsa to store the passphrase in Keychain.

Then add the following to ~/.ssh/config:

Host *
  UseKeychain yes
  AddKeysToAgent yes
  IdentityFile ~/.ssh/id_rsa

so that you don't need to do this everytime you login (see here).

macOS preferences

  • Scroll bars
    • System Preferences --> General
    • Show scroll bars: Always
    • Click in the scroll bar to: Jump to the spot that's clicked
  • Enable three finger drag
  • Set clock to show date
  • Set battery to show percentage
  • Turn off autocorrect
    • System preferences --> Keyboard
    • Text tab
    • Uncheck the 3 boxes
  • Mail app keyboard shortcut for archive
    • System preferences --> Keyboard
    • Shortcuts, App shortcuts
    • "+"
    • Mail
    • Menu Title: Archive
    • Shortcut: Cmd+E
  • Turn of new mail sound
    • Mail --> Preferences --> General
    • New message sound: None
  • Show all file extensions
    • Finder --> Preferences --> Advanced --> Show all filename extensions
  • Chrome --> Chrome menu --> check "Warn before quitting" (to guard against pressing command-Q instead of command-W)