Mac Computer Setup

Applications

  • Firefox
  • Safari
  • Obsidian (link)
  • Utilities
  • Signal
  • GitHub Desktop
  • iTerm2
    • Set up iTerm2 shortcut keys: Link
  • PyCharm
    • Black code formatter setup in PyCharm: ^573833
      • Install: pip install black
      • Set up in PyCharm (Black docs): PyCharm > Preferences > Tools > External tools
        • Name: Black
        • Description: The uncompromising code formatter
        • Program: /Users/matthewkudija/.pyenv/versions/3.10.0/lib/python3.10/site-packages/black (install in some base environment that won't get touched)
        • Arguments: "$FilePath$"
        • Working Directory: $ProjectFileDir$
      • Change Black file permissions (so PyCharm can execute it):
        • chmod ugo+x /Users/matthewkudija/.pyenv/versions/3.10.0/lib/python3.10/site-packages/black
          • user, group, other, + x can execute
      • Set up PyCharm shortcut: PyCharm > Preferences > Keymap > shift + command + ;
      • Usage: black <path_to_file>
  • Sublime text
  • TexShop
  • Fig
  • Flycut
  • Python
    • Install Homebrew
      • /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
    • Install pip
      • curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
      • python get-pip.py or python3 get-pip.py
    • Install pyenv
      • brew update
      • brew install pyenv
      • pyenv init
    • Install python
      • ==brew install xz (to prevent issues with lzma after installing python)==
      • pyenv install -v <python-version> i.e. pyenv install -v 3.10.1
        • see available versions with pyenv install --list
      • pyenv local 3.10.1
      • pyenv versions to confirm that * is by 3.10.1
      • pyenv init --path, then run the output of that, like export PATH="/Users/matthewkudija/.pyenv/shims:${PATH}"
      • Confirm version by running which python or python
      • Manage pipenv environments
      • install packages, i.e. pip install pandas
    • Manage versions
      • pyenv versions - see available versions
      • pyenv install 3.10.0 - install version
      • pyenv shell <version>- select version just for current shell session
      • pyenv local <version>- automatically select whenever you are in the current directory (or its subdirectories)
    • pyenv global <version>- select globally for your user account
  • Old/other

Root-specific

Root link


Created: 2021-07-19-Mon
Updated: 2023-01-05-Thu