macOS
Keyboard Shortcut
- Rectangle: Move and Resize Window
iTerm 2
Use ⌥ ← and ⌥ → to jump forwards / backwards words
Use ⌥ ← and ⌥→ to jump forwards / backwards words in iTerm 2, on OS X@coderwall
- set left ⌥ key to act as an escape character
- iterm2 > preferences > profile > keys
- left ⌥ key > Esc+
- set ⌥← to jump backwards
- Keyboard Shortcut: ⌥←
- Action: Send Escape Sequence
- Esc+: b
- ⌥ → as well
Key Repeat
Mac OS hold key down is show special char default, to change to repeat input char.
- Enable Key Repeat
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
- Disable Key Repeat
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool true
Restart your computer
Adjust key repeat speed
- System Preferences
- Keyboard
- Key Repeat
- Delay Until Repeat
Chinese Input
- McBopomofo: for Old Style Chinese Input like 「ㄅ半」
Path
- change dir to paths.d
/etc/paths.d/
- add path file, name “go”
#go
/usr/local/go/bin
- save file, and restart terminal
System Limit
Kernel
- View
$sudo sysctl -a
- Adjust
$sudo sysctl -w kern.maxfiles=1048600
$sudo sysctl -w kern.maxfilesperproc=1048576
Open Files Limit
- Check ulimit
ulimit -n
Session
- Adjust ulimit
ulimit -S -n 1048576
System Wide
- Temporarily
$sudo sysctl -w fs.file-max=1048576
- Persist
- Add
fs.file-max=1048576
in/etc/sysctl.conf
- Add
User Level
- Edit
/etc/security/limits.conf
<domain> <type> <item> <value>
dinolai hard nofile 4096
dinolai soft nofile 1024