Skip to content

Instantly share code, notes, and snippets.

@agusmakmun
Last active October 21, 2021 04:14
Show Gist options
  • Save agusmakmun/e48dbeec471591cf62ff5111cb81b9a3 to your computer and use it in GitHub Desktop.
Save agusmakmun/e48dbeec471591cf62ff5111cb81b9a3 to your computer and use it in GitHub Desktop.
Mac Cheat Sheet
  1. Minimize app in dock: Opt + Click the icon app (https://apple.stackexchange.com/a/38201)
  2. Screenshot: ⌘ cmd + Shift + 3/4/5
  3. Set primary display: https://www.addictivetips.com/mac-os/set-the-primary-display-on-macos/
  4. GIF Screen Recorder: ???
  5. Set default editor to nano: https://unix.stackexchange.com/a/501863
  6. Resize window: https://www.theverge.com/2020/3/6/21168153/macos-catalina-windows-size-rearrange-how-to
  • ~/.bash_profile
# Setup Python Virtualenv
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
export WORKON_HOME=$HOME/.virtualenvs
export VIRTUALENVWRAPPER_VIRTUALENV=/Users/{user_name}/Library/Python/3.8/bin/virtualenv
source /Users/{user_name}/Library/Python/3.8/bin/virtualenvwrapper.sh
alias virtualenv="/Users/{user_name}/Library/Python/3.8/bin/virtualenv"

# Setup Default Editor to Nano
export EDITOR=nano
export VISUAL="$EDITOR"
  • ~/.zshrc
# Custom Aliases
alias cloudegg="cd /Users/{user_name}/envs/env-cloud-egg/ && source bin/activate && cd cloud-egg/"

# https://github.com/zsh-users/zsh-syntax-highlighting
source /Users/{user_name}/.oh-my-zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

# Acticate the custom profile setup
source ~/.bash_profile

https://gist.github.com/fzrhrs/01cc8cb5f34bfd91e8a7a09dba5be3fe

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