Tools

Tmux https://segmentfault.com/a/1190000008188987

tmux: Peter Jang https://medium.com/actualize-network/a-minimalist-guide-to-tmux-13675fb160fa https://github.com/tmux/tmux/wiki official endorsed: https://www.hamvocke.com/blog/a-quick-and-easy-guide-to-tmux/ official endorsed: https://robots.thoughtbot.com/a-tmux-crash-course official endorse book: https://leanpub.com/the-tao-of-tmux/read iTerms2 integration https://www.iterm2.com/documentation-tmux-integration.html https://hackernoon.com/a-gentle-introduction-to-tmux-8d784c404340 tmux 2 book https://www.safaribooksonline.com/library/view/tmux-2/9781680502374/

https://www.kawabangga.com/posts/2557 http://louiszhai.github.io/2017/09/30/tmux/ https://www.kancloud.cn/kancloud/tmux/62459

https://linuxize.com/post/getting-started-with-tmux/ https://news.ycombinator.com/item?id=17998649 tmux外貌 https://www.kawabangga.com/posts/2477

tmux?? http://pmihaylov.com/tmux-terminal-multiplexer/ iTerms integration with tmux iTerms more windows in one tab, save window arrangement

iTerms2 autocomplete (input start of word, then)⌘;

iTerms 2 tricks https://coderwall.com/p/h6yfda/use-and-to-jump-forwards-backwards-words-in-iterm-2-on-os-x https://coderwall.com/t/iterm2/popular

Notes

Vimium https://github.com/philc/vimium/blob/master/README.md in page navigation: j/k go down / up d/u go down / up by half of page gg: go to top of page G: go to bottom of page f: open link in current tab F: open link in background tab H/L: go back and forth in history J/K: go left and right in tabs

o: quick open google/history O: open in new tab b: open bookmark B: open bookmark in new tab T: search in open tabs

?: help r: reload gs: read source i: insert mode yy: copy current url

/: find t: create tab x: close tab

Mac OS X Productivity Tips for Developers https://github.com/matthewmccullough/MacOSXProductivityTips/blob/master/Resources.md

https://www.safaribooksonline.com/library/view/mac-os-x/9781491945476/ ctrl +a/e: go to beginning/end of line. also works in MacOS. ctrl + u/k delete from cursor to beginning/end of line command + r: refresh terminal delete one line: first ctrl+a, then ctrl+k ctrl + w: erase word to left ctrl + t: transpose/exchange characters around cursor

iTerms 2: swiching tabs: commang + left/right GitHub tools: tig: text based graph for git; hub gem: create PR in command line Bash prompt: PS1 https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh

text file format: markdown, asciidoc for a book (.asc)

spotlight search: name: kind: date:today date: >1/1/08 AND NOT OR hold command key, it shows the directory. hold command + double click or enter: open the folder

quicklook (space in Finder) https://github.com/sindresorhus/quick-look-plugins

Finder command+shift+n: new folder command+alt+v: moves file from pasteboard command+d: = make more copies tabs: show next tab: ctrl + tab. show previous tab: ctrl + shift + tab command + i: inspect

spotlight search: tag:github AND apple

special characters / emoji: ctrl + command + space

curl curl -I url #just show me the response header: send a Http GET in the header, X-attributes: non-standard extension. curl url # returns the body of response: send a http GET. can change the verb as well

wget for files: wget url

pasteboard command line pbcopy/pbpaste curl -I http://www.google.com | pbcopy pbpaste # run the command

Shell tune-ups echo $SHELL /bin/bash

shells: fish (not POSIX) https://fishshell.com/

oh my zsh https://github.com/robbyrussell/oh-my-zsh switching to zsh http://zpalexander.com/switching-to-zsh/

dotfiles on GitHub
@pengwynn @holman
dotfiles.github.io
https://www.kawabangga.com/posts/2432

caffeine GUI http://lightheadsw.com/caffeine/ set a screensaver for security reasons caffeinate: command line

window management: specticle (alternative slate https://github.com/jigish/slate)

command + `: switch windows for the same application command + ,: go to setting of that app command + ?: search help app switcher: cmd + tab, then down: see all windows from that app. hit q: quit screenshot: command shift 3. add ctrl will copy the screenshot to clipboard screenshot selection: command shift 4. hit space bar to select between apps. after dragging, hold the spacebar to move the selection around.

annotate with preview. record video using quickplayer

applescript automation: script GUI applications, when the application expose the control to applescript

Automator: can add steps or just “record”

z command (better cd): https://github.com/rupa/z e.g. z Down smart complete: frecency: frequency and recency

cd - : toggle between last two directories git checkout -: toggle between two branches

right click on icon: shows the path. can drag into terminal, “where” in the save dialog. in finder: type path: command + shift +g: type the path: auto-completion enabled

command + F1: toggle mirror display ctrl + alt + command + 8: invert color

search a recent command ctrl + r, then type

paste: cmd + alt + v command shift tab icons

hold alt, right click, see the files total size

Google doc: ⌘← Move to beginning of line (stops on whitespace) ⌘→ Move to end of line ⌘↑ Move to beginning of file ⌘↓ Move to end of file ⇧-move Select text ⌘F Find ⌥+⌫ and ⌘+⌫ are the shortcuts for deleting a word and deleting a line respectively.

Chrome: ⌘ + number: jump to tab