Skip to content

Instantly share code, notes, and snippets.

set-option -g default-shell /bin/zsh
set -g mouse on
# remove the 1-sec delay after pressing 'escape'
set -sg escape-time 0
### Appearance Changes
# status line
@sweetmandm
sweetmandm / PhoneFormat.swift
Last active October 24, 2017 19:50
Simple Phone Number Formatting for String + UITextField
// Usage:
// ------
// /* add the action somewhere: */
// phoneTextField.addTarget(self, action: #selector(updatePhoneFormat), for: .editingChanged)
// /* implement the update action: */
// func updatePhoneFormat() { phoneTextField.formatPhoneNumber() }
import UIKit
extension String {