Skip to content

Instantly share code, notes, and snippets.

@nteissler
nteissler / tmux.md
Created February 8, 2021 16:44 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@nteissler
nteissler / Patterns.swift
Last active August 24, 2018 05:41
Pro Pattern Matching
import UIKit
// Swift 4.2 Xcode 10
//: ## Optional Patterns
func aLegacyObjcFunction() -> String! {
return "I wasn't annotated with modern objc conventions!"
}
func myFunction() -> String {