Ben Chuanlong Du's Blog

It is never too late to learn.

Tips on macOS

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. Print Mac OS X operating system version information.

    sw_vers -productName
    
  2. iTerm2 is the best termimal application in Mac.

  3. You can use Homebrew to install applications in Mac similar to the command apt-get or wajig in Debian series of Linux distributions. However, you do not have to run the command brew with sudo. As a matter of fact, you should never do this.

Key Repeating

  1. Run the following command in terminal and then restart your Mac to enable key repeating by pressing and holding.

    defaults write -g ApplePressAndHoldEnabled -bool false
    
  2. Run the following command in terminal and then restart your Mac to disable key repeating by presing and holding.

    defaults write -g ApplePressAndHoldEnabled -bool true
    

For more details please refer to How to Enable Key Repeating in macOS .

Allow SSH into Mac

Enable Remote Login to Start SSH Server in Mac OS X

IP Address

ifconfig | grep inet

How to find internal and external IP addresses on Mac OS X and macOS?

Touchpad

  1. Enable tapping (for click) by checking the checkbox Tap to click in System preference... > Trackpad > Point & Click.

  2. Enable tapping with two fingers for right click by checking the checkboxs Tap to click and Secondary click in System preference... > Trackpad > Point & Click.

  3. Tapping is automatically disable while typing on Mac.

Useful Applications

CheatSheet

Just hold the ⌘-Key a bit longer to get a list of all active short cuts of the current application. It's as simple as that.

LICEcap

LICEcap can capture an area of your desktop and save it directly to .GIF (for viewing in web browsers, etc) or .LCF.

KeyCastr

KeyCastr, an open-source keystroke visualizer.

Anks

Anki is a program which makes remembering things easy. Because it's a lot more efficient than traditional study methods, you can either greatly decrease your time spent studying, or greatly increase the amount you learn.

Magnet

Magnet keeps your workspace organized.

Alfred

Alfred is an award-winning app for macOS which boosts your efficiency with hotkeys, keywords, text expansion and more. Search your Mac and the web, and be more productive with custom actions to control your Mac.

Move and Resize Windows

https://www.spectacleapp.co/

https://github.com/eczarny/spectacle

External Monitors

https://support.apple.com/en-us/HT202351

References

Comments