Mac OS tricks

Posted by Echo Yuan on June 7, 2017
  1. Command to copy pwd to clipboard: pwd | pbcopy
  2. Copy last command to clipboard:echo "!!" | pbcopy
  3. Customize your terminal prompt
  4. Reattach terminal tab to another window
  5. Get Epoch time from command line: date +%s
  6. Terminal: Ctrl+A to jump to the beginning of the current command, and Ctrl+E to jump to the end.
  7. By pressing Fn + Option + Shift + F1/F2, you can adjust screen brightness by 1/4 frame rather than by one frame as before.
  8. OneTab - Save up to 95% memory and reduce tab clutter in Google Chrome