Setting up a new environment

Customising terminal

# .zshrc.local
if [ -f ~/.zshrc.functions ]; then
    source ~/.zshrc.functions
    print "404: ~/.zshrc.functions not found."
  • neat tricks
    • open image.jpg opens in default application (Preview on macOS)
    • + shift + P to install ‘code’ command in PATH. Now you can open any file in code via terminal: code

Useful libs

  • imagemagick
  • youtube-dl
  • ffmpeg


  • gist
  • Find location of pg_hba.conf by going into psql and typing SHOW hba_file
  • Likely need to change auth method from peer to md5

Redis with UNIX sockets