Table of contents
Open Table of contents
Apps
- Homebrew
- Karabiner-Elements (I am using microsoft Nano Transceiver v2.1 wireless keyboard, map
application
key (keys in pc keyboards -> application) tofn
key (modifier keys -> fn) to switch input languages) - OneMenu (window management, keyboard cleaning, external monitor brightness, and clipboard history)
Homebrew
list all installed packages, optionally can add the package_name
parameter
$ brew list [package_name]
Case Sensitive Volume
Some code may depend on case-sensitive naming as permitted with linux file system. How to create a case-sensitive volume on a Mac?
With Mac Sequoia (macOS 15), we could use disk utility.
- Select where you want to create the case-sensitive volume, recommend creating in the “Macintosh HD” volume container
- use menu, Edit > add APFS volume, type name
- select “APFS (Case-sensitive)” or “APFS (Case-sensitive, Encrypted)” from the format dropdown
- click size options and type in the reserve size (min start size) and quta size (max size)
- click add
For older mac OS
- use menu, File > new image, blank image
- provide save as name “code.dmg” and select save location
- provide name, size, format can select “Mac OS extended (Case-sensitive, Journaled)” or “APFS (Case-sensitive)”
- add the image to log-in items so the image can be automatically mounted at OS startup.
Keyboard Shortcuts
ctrl + k
to delete till the end of line, vimd, $
cmd + backspace
orcmd + shift + left, delete
delete to the beginning of the linealt + left-arrow
to move cursor word by word,b
in vim,ctrl + left-arrow
in windows.cmd + left-arrow
to move to the beginning of the line,home
key in windows